/* ===== Tower Defense — Menu UI Styles (Landscape) ===== */

/* ---- Menu Content ---- */
.menu-content {
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px 20px;
}

/* ---- Castle Logo ---- */
.castle-logo {
    font-size: 60px;
    margin-bottom: 4px;
    animation: castleFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
@keyframes castleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---- Rainbow Title ---- */
.game-title-rainbow {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 10px;
    margin-bottom: 4px;
    text-shadow: 0 4px 16px rgba(0,0,0,0.3);
    user-select: none;
}
.game-title-rainbow .c1 { color: #FF6B6B; }
.game-title-rainbow .c2 { color: #FFB347; }
.game-title-rainbow .c3 { color: #87CEEB; }
.game-title-rainbow .c4 { color: #A78BFA; }

/* ---- Subtitle ---- */
.game-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-style: italic;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

/* ---- Start Button ---- */
.btn-start {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 56px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #FF9A9E 0%, #FAD0C4 30%, #FFB347 70%, #FF6B6B 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    box-shadow: 0 6px 24px rgba(255,107,107,0.4);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}
.btn-start:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 36px rgba(255,107,107,0.5);
}
.btn-start:active {
    transform: scale(0.97);
}
.btn-icon { font-size: 24px; }
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Tower Showcase Cards ---- */
.tower-showcase {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.tower-card {
    width: 80px;
    padding: 10px 6px 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    text-align: center;
    backdrop-filter: blur(6px);
    transition: transform 0.2s, background 0.2s;
}
.tower-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.14);
}
.tower-card-icon { font-size: 28px; margin-bottom: 4px; }
.tower-card-name { font-size: 12px; font-weight: bold; margin-bottom: 2px; }
.tower-card-desc { font-size: 10px; color: rgba(255,255,255,0.55); }

/* ---- Result Overlay ---- */
.result-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.result-content {
    background: linear-gradient(160deg, #1a1a3e 0%, #2d1b69 100%);
    border: 2px solid rgba(167,139,250,0.5);
    border-radius: 24px;
    padding: 32px 40px;
    text-align: center;
    box-shadow: 0 16px 60px rgba(0,0,0,0.5);
    min-width: 300px;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}
.result-icon { font-size: 56px; margin-bottom: 10px; }
.result-content h2 { font-size: 26px; color: #fff; margin-bottom: 6px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.result-content p { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.result-stars { font-size: 32px; letter-spacing: 6px; margin-bottom: 18px; }
.result-buttons { display: flex; gap: 12px; justify-content: center; }

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(102,126,234,0.4);
}
.btn-primary:active { transform: scale(0.97); }
.btn-next { background: linear-gradient(135deg, #4ECDC4, #44B39D); }
.btn-next:hover { box-shadow: 0 4px 16px rgba(78,205,196,0.4); }

/* ---- Responsive for landscape small screens ---- */
@media (max-height: 400px) {
    .castle-logo { font-size: 40px; }
    .game-title-rainbow { font-size: 36px; letter-spacing: 6px; }
    .btn-start { padding: 10px 40px; font-size: 18px; }
    .tower-card { width: 64px; padding: 8px 4px 6px; }
    .tower-card-icon { font-size: 22px; }
    .game-subtitle { margin-bottom: 12px; font-size: 12px; }
}
