/* ==================== 绿野防线 - 优化UI ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #0a1f0a; color: #e8f5e8;
    overflow: hidden; width: 100vw; height: 100vh;
}

.screen { display: none; width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.screen.active { display: flex; }
.hidden { display: none !important; }

/* ==================== 主菜单 ==================== */
#main-menu { justify-content: center; align-items: center; flex-direction: column; }
.menu-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(34,139,34,0.3) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(46,125,50,0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(27,94,32,0.1) 0%, transparent 70%),
                linear-gradient(180deg, #061206 0%, #0d2b0d 50%, #092109 100%);
    z-index: -1;
}
@keyframes floatParticle {
    0% { transform: translateY(0) rotate(0); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}
.menu-particle {
    position: absolute; width: 4px; height: 4px; background: #7cfc00;
    border-radius: 50%; animation: floatParticle 8s linear infinite; pointer-events: none;
}
.menu-content { text-align: center; z-index: 1; }
.game-title {
    font-size: 4.2rem; color: #7cfc00;
    text-shadow: 0 0 30px rgba(124,252,0,0.5), 0 0 80px rgba(124,252,0,0.2), 0 4px 8px rgba(0,0,0,0.5);
    letter-spacing: 10px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}
@keyframes titleGlow {
    from { text-shadow: 0 0 20px rgba(124,252,0,0.6), 0 0 40px rgba(124,252,0,0.3); }
    to { text-shadow: 0 0 40px rgba(124,252,0,0.9), 0 0 80px rgba(124,252,0,0.5); }
}
.game-subtitle { font-size: 1.2rem; color: #90ee90; margin-top: 8px; opacity: 0.8; letter-spacing: 6px; }
.menu-buttons { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.menu-btn {
    padding: 14px 48px; font-size: 1.1rem; border: 2px solid #2e7d32; border-radius: 14px;
    background: linear-gradient(135deg, rgba(46,125,50,0.3), rgba(27,94,32,0.4));
    color: #c8e6c9; cursor: pointer; transition: all 0.3s ease;
    min-width: 270px; letter-spacing: 2px; backdrop-filter: blur(4px);
    position: relative; overflow: hidden;
}
.menu-btn::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(124,252,0,0.1), transparent 70%);
    opacity: 0; transition: opacity 0.3s;
}
.menu-btn:hover { transform: translateY(-3px); border-color: #66bb6a; box-shadow: 0 8px 30px rgba(76,175,80,0.3); color: #fff; }
.menu-btn:hover::before { opacity: 1; }
.menu-btn:active { transform: translateY(-1px); }
.menu-btn.primary {
    border-color: #4caf50; background: linear-gradient(135deg, rgba(76,175,80,0.5), rgba(67,160,71,0.6));
    font-size: 1.25rem; padding: 18px 56px;
}
.footer-text { position: absolute; bottom: 25px; font-size: 0.9rem; color: rgba(144,238,144,0.4); letter-spacing: 3px; }
#crystal-display { margin-top: 16px; font-size: 1rem; color: #ce93d8; display: flex; align-items: center; gap: 6px; justify-content: center; }

/* ==================== 面板通用 ==================== */
.panel {
    background: linear-gradient(145deg, rgba(10,35,10,0.97), rgba(5,15,5,0.98));
    border: 1px solid rgba(76,175,80,0.2); border-radius: 16px; padding: 32px;
    max-width: 700px; width: 90%; max-height: 85vh; overflow-y: auto;
    box-shadow: 0 8px 50px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.04);
}
.panel h2 { text-align: center; color: #81c784; margin-bottom: 20px; font-size: 1.7rem; letter-spacing: 2px; }
.back-btn { margin-top: 20px; width: 100%; }

/* ==================== 游戏指南 ==================== */
#howto-screen { justify-content: center; align-items: center; }
.howto-content section { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(76,175,80,0.1); }
.howto-content h3 { color: #aed581; margin-bottom: 6px; font-size: 1.1rem; }
.howto-content p { line-height: 1.6; color: #c8e6c9; font-size: 0.92rem; }
.howto-content ul { list-style: none; margin-top: 6px; }
.howto-content li { padding: 3px 0 3px 20px; color: #c8e6c9; font-size: 0.9rem; position: relative; }
.howto-content li::before { content: '🌿'; position: absolute; left: 0; font-size: 0.8rem; }

/* ==================== 图鉴 ==================== */
#encyclopedia-screen { justify-content: center; align-items: center; }
.encyclopedia-panel { max-width: 850px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab { flex: 1; padding: 10px; border: none; border-radius: 8px; background: rgba(46,125,50,0.12); color: #a5d6a7; cursor: pointer; transition: all 0.25s; font-size: 1rem; }
.tab.active { background: rgba(76,175,80,0.35); color: #fff; font-weight: bold; }
.tab:hover:not(.active) { background: rgba(46,125,50,0.25); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.entry-card {
    background: rgba(0,0,0,0.2); border: 1px solid rgba(76,175,80,0.12); border-radius: 10px;
    padding: 12px 16px; margin-bottom: 8px; transition: all 0.2s;
}
.entry-card:hover { border-color: rgba(129,199,132,0.3); background: rgba(46,125,50,0.06); }
.entry-card h4 { color: #c5e1a5; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.entry-card p { color: #a5d6a7; font-size: 0.85rem; line-height: 1.5; }

/* ==================== 选关 ==================== */
#level-select { justify-content: center; align-items: center; }
.level-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px; margin-bottom: 16px;
}
.level-btn {
    aspect-ratio: 1; border: 2px solid rgba(76,175,80,0.25); border-radius: 14px;
    background: rgba(46,125,50,0.08); color: #a5d6a7; font-size: 1.1rem;
    cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
}
.level-btn.unlocked:hover {
    transform: translateY(-4px); border-color: #66bb6a;
    background: rgba(76,175,80,0.25); box-shadow: 0 6px 20px rgba(76,175,80,0.2);
}
.level-btn.locked { opacity: 0.35; cursor: not-allowed; filter: grayscale(0.6); }
.level-btn .level-stars { font-size: 0.7rem; }

/* ==================== 游戏主界面 ==================== */
#game-screen { flex-direction: column; height: 100vh; padding: 0; }
#top-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 16px;
    background: linear-gradient(180deg, rgba(5,15,5,0.96), rgba(10,30,10,0.92));
    border-bottom: 1px solid rgba(76,175,80,0.15); z-index: 10;
}
.resource-group { display: flex; gap: 8px; }
.res-item {
    display: flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 600;
    color: #c8e6c9; padding: 3px 10px; background: rgba(0,0,0,0.25);
    border-radius: 6px; border: 1px solid rgba(76,175,80,0.08);
}
.res-icon { font-size: 1rem; }
.res-val { color: #e8f5e8; min-width: 20px; text-align: center; font-size: 0.9rem; }
.res-label { color: #81c784; font-size: 0.75rem; font-weight: normal; }
.control-group { display: flex; gap: 4px; }
.ctrl-btn {
    padding: 5px 12px; border: 1px solid rgba(76,175,80,0.25); border-radius: 8px;
    background: rgba(46,125,50,0.15); color: #c8e6c9; cursor: pointer;
    font-size: 0.85rem; transition: all 0.2s;
}
.ctrl-btn:hover { background: rgba(76,175,80,0.35); border-color: rgba(124,252,0,0.3); box-shadow: 0 0 10px rgba(76,175,80,0.12); }

#game-container {
    flex: 1; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; background: #071a07;
}
#game-canvas { display: block; }

/* ==================== 塔面板 ==================== */
#tower-panel {
    position: absolute; left: 10px; top: 10px; bottom: 10px; width: 195px;
    background: linear-gradient(180deg, rgba(8,30,8,0.95), rgba(5,15,5,0.97));
    border: 1px solid rgba(76,175,80,0.2); border-radius: 12px; padding: 12px;
    overflow-y: auto; z-index: 5;
}
#tower-panel h4 { color: #a5d6a7; margin-bottom: 10px; font-size: 0.9rem; text-align: center; border-bottom: 1px solid rgba(76,175,80,0.12); padding-bottom: 6px; letter-spacing: 2px; }
.tower-list { display: flex; flex-direction: column; gap: 5px; }
.tower-cat-header { font-size: 0.65rem; font-weight: bold; padding: 3px 0; margin-top: 3px; letter-spacing: 1px; text-transform: uppercase; }
.tower-select-btn {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    border: 1px solid rgba(76,175,80,0.15); border-left: 3px solid transparent;
    border-radius: 8px; background: rgba(46,125,50,0.06); color: #c8e6c9;
    cursor: pointer; transition: all 0.2s ease; text-align: left; font-size: 0.8rem;
}
.tower-select-btn:hover:not(.disabled) { background: rgba(76,175,80,0.18); border-color: rgba(124,252,0,0.25); transform: translateX(2px); }
.tower-select-btn.disabled { opacity: 0.3; cursor: not-allowed; filter: grayscale(0.5); }
.tower-select-btn .tw-icon { font-size: 1.3rem; width: 28px; text-align: center; }
.tower-select-btn .tw-info { flex: 1; }
.tower-select-btn .tw-name { font-weight: 600; color: #e8f5e8; font-size: 0.82rem; }
.tower-select-btn .tw-cost { font-size: 0.72rem; color: #a5d6a7; }
.tw-mini-icon { width: 28px; height: 28px; border-radius: 6px; }

/* ==================== 塔信息面板 ==================== */
#tower-info {
    position: absolute; right: 10px; top: 10px; width: 220px;
    background: linear-gradient(180deg, rgba(8,30,8,0.96), rgba(5,15,5,0.98));
    border: 1px solid rgba(76,175,80,0.2); border-radius: 12px; padding: 12px; z-index: 5;
}
.info-header { color: #c5e1a5; font-weight: bold; font-size: 1rem; text-align: center; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(76,175,80,0.12); }
.info-stats { font-size: 0.78rem; color: #a5d6a7; line-height: 1.6; margin-bottom: 10px; }
.info-stats div { display: flex; justify-content: space-between; padding: 2px 0; }
.info-actions { display: flex; flex-direction: column; gap: 5px; }
.info-actions button {
    padding: 7px; border: 1px solid rgba(76,175,80,0.2); border-radius: 8px;
    background: rgba(46,125,50,0.12); color: #c8e6c9; cursor: pointer;
    font-size: 0.8rem; transition: all 0.2s;
}
.info-actions button:hover { background: rgba(76,175,80,0.28); transform: translateY(-1px); }
.info-actions button.upgrade-eco { border-color: rgba(129,199,132,0.35); }
.info-actions button.upgrade-eff { border-color: rgba(255,193,7,0.35); }
.info-actions button.sell-btn { border-color: rgba(244,67,54,0.25); color: #ef9a9a; }

/* ==================== 底部栏 ==================== */
#bottom-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(0deg, rgba(5,15,5,0.96), rgba(10,30,10,0.92));
    border-top: 1px solid rgba(76,175,80,0.15); z-index: 10;
}
.ability-buttons { display: flex; gap: 4px; }
.ability-btn {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 5px 9px; border: 1px solid rgba(76,175,80,0.2); border-radius: 8px;
    background: rgba(46,125,50,0.1); color: #c8e6c9; cursor: pointer;
    font-size: 0.7rem; transition: all 0.2s; min-width: 48px; position: relative;
}
.ability-btn:hover { background: rgba(76,175,80,0.25); border-color: rgba(124,252,0,0.3); box-shadow: 0 0 8px rgba(76,175,80,0.1); }
.ability-btn .ab-icon { font-size: 1rem; }
.ability-btn .ab-name { font-size: 0.65rem; }
.ability-btn .ab-cd { font-size: 0.6rem; color: #ffab40; position: absolute; top: 1px; right: 3px; }

.wave-btn {
    padding: 8px 24px; border: 2px solid #43a047; border-radius: 10px;
    background: linear-gradient(135deg, rgba(67,160,71,0.35), rgba(56,142,60,0.45));
    color: #e8f5e8; font-size: 0.9rem; font-weight: bold; cursor: pointer;
    transition: all 0.3s ease; letter-spacing: 1px; position: relative; overflow: hidden;
    white-space: nowrap; max-width: 280px; text-overflow: ellipsis;
}
.wave-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(76,175,80,0.35); border-color: #7cfc00; }
.wave-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }

.eco-meter { display: flex; align-items: center; gap: 8px; color: #a5d6a7; font-size: 0.8rem; }
.progress-bar { width: 100px; height: 10px; background: rgba(0,0,0,0.35); border-radius: 5px; overflow: hidden; border: 1px solid rgba(76,175,80,0.15); }
.progress-bar > div { height: 100%; background: linear-gradient(90deg, #2e7d32, #66bb6a, #a5d6a7); border-radius: 5px; transition: width 0.4s ease; }

/* ==================== 遮罩层 ==================== */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; justify-content: center; align-items: center; z-index: 100; backdrop-filter: blur(5px); }

/* ==================== 暂停菜单 ==================== */
.pause-panel {
    background: linear-gradient(145deg, rgba(10,35,10,0.97), rgba(5,15,5,0.98));
    border: 1px solid rgba(124,252,0,0.2); border-radius: 20px;
    padding: 32px 36px; max-width: 420px; width: 90%;
    box-shadow: 0 12px 60px rgba(0,0,0,0.8), 0 0 40px rgba(124,252,0,0.06), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: pauseFadeIn 0.35s ease-out;
    position: relative; overflow: hidden;
}
.pause-panel::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(124,252,0,0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(76,175,80,0.03) 0%, transparent 50%);
    pointer-events: none;
}
.pause-header { text-align: center; margin-bottom: 24px; position: relative; z-index: 1; }
.pause-icon { font-size: 2.4rem; margin-bottom: 8px; }
.pause-title {
    font-size: 1.8rem; color: #81c784; font-weight: bold; letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(124,252,0,0.15);
}
.pause-divider {
    width: 60px; height: 2px; background: linear-gradient(90deg, transparent, rgba(124,252,0,0.5), transparent);
    margin: 12px auto 0;
}
.pause-stats {
    display: flex; justify-content: center; gap: 12px; margin-bottom: 28px;
    flex-wrap: wrap; position: relative; z-index: 1;
}
.pause-stat {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 14px; background: rgba(0,0,0,0.3); border-radius: 10px;
    border: 1px solid rgba(76,175,80,0.1); font-size: 0.85rem; color: #c8e6c9;
}
.pause-stat .ps-icon { font-size: 1rem; }
.pause-stat .ps-val { font-weight: 600; color: #e8f5e8; min-width: 24px; text-align: center; }
.pause-buttons {
    display: flex; flex-direction: column; gap: 10px;
    position: relative; z-index: 1;
}
.pause-btn {
    padding: 14px 28px; border-radius: 14px; border: 1px solid rgba(76,175,80,0.2);
    background: rgba(46,125,50,0.08); color: #c8e6c9; font-size: 1rem;
    cursor: pointer; transition: all 0.25s ease; letter-spacing: 1px;
    text-align: center; position: relative; overflow: hidden;
}
.pause-btn::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(124,252,0,0.05), transparent);
    opacity: 0; transition: opacity 0.25s;
}
.pause-btn:hover { transform: translateY(-2px); }
.pause-btn:hover::before { opacity: 1; }
.pause-btn:active { transform: translateY(0); }
.pause-btn.resume-btn {
    border-color: rgba(76,175,80,0.5); background: rgba(76,175,80,0.2);
    color: #a5d6a7; font-weight: bold; font-size: 1.1rem;
}
.pause-btn.resume-btn:hover {
    background: rgba(76,175,80,0.35); border-color: #66bb6a;
    box-shadow: 0 6px 24px rgba(76,175,80,0.3); color: #e8f5e8;
}
.pause-btn.restart-btn:hover {
    border-color: rgba(255,193,7,0.5); background: rgba(255,193,7,0.12);
    box-shadow: 0 6px 24px rgba(255,193,7,0.15); color: #ffe082;
}
.pause-btn.quit-btn {
    border-color: rgba(244,67,54,0.15);
}
.pause-btn.quit-btn:hover {
    border-color: rgba(244,67,54,0.5); background: rgba(244,67,54,0.12);
    box-shadow: 0 6px 24px rgba(244,67,54,0.15); color: #ef9a9a;
}
.pause-footer {
    text-align: center; margin-top: 20px; font-size: 0.75rem; color: rgba(165,214,167,0.4);
    letter-spacing: 1px; position: relative; z-index: 1;
}
.pause-footer kbd {
    padding: 1px 6px; border: 1px solid rgba(76,175,80,0.2); border-radius: 4px;
    background: rgba(0,0,0,0.3); font-family: inherit; font-size: 0.7rem; color: #a5d6a7;
}
@keyframes pauseFadeIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.result-panel { text-align: center; }
.stars { font-size: 2.8rem; margin: 14px 0; letter-spacing: 10px; animation: starPulse 1.5s ease-in-out infinite alternate; }
@keyframes starPulse { from { transform: scale(1); filter: drop-shadow(0 0 4px rgba(255,215,0,0.5)); } to { transform: scale(1.05); filter: drop-shadow(0 0 12px rgba(255,215,0,0.8)); } }
.result-stats { text-align: left; margin: 14px auto; max-width: 300px; background: rgba(0,0,0,0.2); border-radius: 10px; padding: 10px 14px; border: 1px solid rgba(76,175,80,0.1); }
.result-stats div { display: flex; justify-content: space-between; padding: 4px 0; color: #a5d6a7; font-size: 0.9rem; }
.carbon-info { margin-top: 14px; padding: 12px; background: rgba(46,125,50,0.1); border-radius: 10px; border: 1px solid rgba(76,175,80,0.15); }
.carbon-info h4 { color: #81c784; margin-bottom: 4px; }
.carbon-info p { color: #a5d6a7; font-size: 0.85rem; }
.result-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.result-actions button:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(76,175,80,0.2); }
.note-card { position: fixed; top: 60px; right: 16px; z-index: 91; pointer-events: none; }
.note-card.hidden { display: none; }
.note-card-content {
    background: linear-gradient(135deg, rgba(15,35,15,0.97), rgba(8,20,8,0.98));
    border: 1px solid rgba(255,213,79,0.35); border-radius: 12px;
    padding: 14px 18px; max-width: 320px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 16px rgba(255,213,79,0.08);
    animation: bestiarySlideIn 0.35s ease-out;
}
.note-card-header { font-size: 0.82rem; color: #ffd54f; margin-bottom: 5px; letter-spacing: 1px; }
.note-card-title { color: #c5e1a5; font-weight: bold; font-size: 0.95rem; margin-bottom: 4px; }
.note-card-body { color: #a5d6a7; font-size: 0.82rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: rgba(76,175,80,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(76,175,80,0.5); }

/* ==================== 塔抽取 ==================== */
.gacha-panel { max-width: 520px; text-align: center; }
.gacha-options { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gacha-card {
    flex: 1; min-width: 100px; padding: 14px 10px;
    border: 2px solid rgba(76,175,80,0.2); border-radius: 12px;
    background: rgba(46,125,50,0.08); cursor: pointer;
    transition: all 0.3s ease; text-align: center;
}
.gacha-card:hover { transform: translateY(-5px); border-color: #7cfc00; box-shadow: 0 8px 24px rgba(124,252,0,0.15); background: rgba(46,125,50,0.2); }
.gacha-card .gacha-icon { font-size: 1.8rem; margin-bottom: 6px; }
.gacha-card .gacha-name { color: #e8f5e8; font-weight: bold; font-size: 0.9rem; margin-bottom: 3px; }
.gacha-card .gacha-desc { color: #a5d6a7; font-size: 0.75rem; line-height: 1.3; }
.gacha-card .gacha-tag { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 0.65rem; margin-top: 4px; }
.tag-plant { background: rgba(76,175,80,0.3); color: #81c784; }
.tag-energy { background: rgba(255,213,79,0.3); color: #ffd54f; }
.tag-animal { background: rgba(206,147,216,0.3); color: #ce93d8; }
.tag-industrial { background: rgba(255,138,101,0.3); color: #ff8a65; }

/* ==================== 剧情故事 ==================== */
.story-bg { position: fixed; inset: 0; background: radial-gradient(ellipse at center, rgba(0,20,0,0.95), rgba(0,10,0,0.98)); z-index: 199; }
.story-container { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 50px; }
.story-title { color: #7cfc00; font-size: 1.3rem; margin-bottom: 24px; text-shadow: 0 0 20px rgba(124,252,0,0.4); letter-spacing: 4px; }
.story-text { max-width: 580px; background: rgba(0,0,0,0.5); border: 1px solid rgba(76,175,80,0.15); border-radius: 12px; padding: 24px 32px; cursor: pointer; transition: all 0.3s; }
.story-text:hover { border-color: rgba(124,252,0,0.3); box-shadow: 0 0 24px rgba(124,252,0,0.08); }
.story-speaker { color: #76ff03; font-size: 0.95rem; font-weight: bold; margin-bottom: 10px; letter-spacing: 2px; }
.story-line { color: #c8e6c9; font-size: 1.05rem; line-height: 1.6; min-height: 1.8em; }

/* ==================== 生物图鉴弹出卡片 ==================== */
.bestiary-popup {
    position: fixed; top: 60px; right: 16px; z-index: 90;
    animation: bestiarySlideIn 0.35s ease-out;
    pointer-events: none;
}
.bestiary-popup.hidden { display: none; }
.bestiary-popup #bestiary-popup-content {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, rgba(8,30,8,0.97), rgba(5,15,5,0.98));
    border: 1px solid rgba(124,252,0,0.3); border-radius: 12px;
    padding: 14px 18px; max-width: 320px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 16px rgba(124,252,0,0.1);
}
.bestiary-popup .beast-icon { font-size: 2.2rem; flex-shrink: 0; }
.bestiary-popup .beast-info { flex: 1; min-width: 0; }
.bestiary-popup .beast-name { color: #c5e1a5; font-weight: bold; font-size: 0.95rem; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.bestiary-popup .beast-desc { color: #a5d6a7; font-size: 0.78rem; line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bestiary-popup .beast-stats { color: #81c784; font-size: 0.7rem; opacity: 0.8; }
.bestiary-popup .beast-tag { 
    display: inline-block; padding: 1px 6px; border-radius: 4px; 
    font-size: 0.6rem; background: rgba(76,175,80,0.25); color: #a5d6a7;
}
.bestiary-popup .beast-tag.boss-tag { background: rgba(244,67,54,0.3); color: #ef9a9a; }
.bestiary-popup .beast-tag.flying-tag { background: rgba(33,150,243,0.3); color: #90caf9; }

@keyframes bestiarySlideIn {
    from { transform: translateX(80px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes bestiarySlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(80px); opacity: 0; }
}

/* ==================== 新手引导 ==================== */
.tutorial-tip {
    position: fixed; z-index: 200; padding: 12px 18px;
    background: linear-gradient(135deg, rgba(13,42,13,0.98), rgba(6,18,6,0.98));
    border: 2px solid rgba(124,252,0,0.45); border-radius: 12px;
    color: #c8e6c9; font-size: 0.9rem; max-width: 260px;
    box-shadow: 0 4px 20px rgba(124,252,0,0.15);
    animation: tipPulse 2s ease-in-out infinite alternate;
}
.tutorial-tip #tutorial-text { line-height: 1.4; }
.tutorial-close-btn { position: absolute; top: 5px; right: 8px; border: none; background: none; color: rgba(255,255,255,0.3); cursor: pointer; font-size: 0.9rem; padding: 2px 5px; }
.tutorial-arrow { position: absolute; bottom: -7px; left: 50%; margin-left: -7px; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 7px solid rgba(124,252,0,0.45); }
@keyframes tipPulse { from { box-shadow: 0 4px 12px rgba(124,252,0,0.12); } to { box-shadow: 0 4px 24px rgba(124,252,0,0.25); } }

/* ==================== 难度选择 ==================== */
.diff-btn { padding: 16px 40px !important; }
.diff-btn small { font-size: 0.8rem; opacity: 0.8; }

/* ==================== 动画 ==================== */
@keyframes floatUp { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-40px); opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
