/* MHU STUDIO - GLOBAL GAME UI STYLES */

/* --- ORTAK SAYFA AYARLARI --- */
body {
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Arial;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    color: white;
}

canvas {
    display: block;
}

/* --- ANA SAYFA BUTONU --- */
#home-link-fixed {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20000;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.95), rgba(184, 56, 75, 0.95));
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.5), inset 0 2px 4px rgba(255,255,255,0.4);
    pointer-events: auto;
    touch-action: manipulation;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

#home-link-fixed:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.7), inset 0 2px 8px rgba(255,255,255,0.6);
    border-color: #fff;
    color: #ffeb3b;
}

#home-link-fixed:active {
    transform: translateY(1px) scale(0.95);
}

/* --- DOKUNMATİK OYUN KONTROLLERİ --- */
#joy-alan {
    position: absolute;
    bottom: 40px;
    left: 30px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
    z-index: 100;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#joy-top {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(200,200,200,0.8) 100%);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6), inset 0 -4px 6px rgba(0,0,0,0.3);
}

#ates-btn {
    position: absolute;
    bottom: 50px;
    right: 30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.95) 0%, rgba(184, 56, 75, 0.85) 100%);
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: white;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 2px;
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
    touch-action: manipulation;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.6), inset 0 -5px 10px rgba(0,0,0,0.4);
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

#ates-btn:active {
    transform: scale(0.85);
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.4), inset 0 5px 15px rgba(0,0,0,0.6);
}

/* --- ORTAK MENÜ YAPI KURALLARI (RENK YAZILMADI) --- */
#menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 380px;
    box-sizing: border-box;
    z-index: 10000;
}

.grid {
    display: grid;
    gap: 8px;
    margin: 10px 0;
}

.renk-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    margin: 0 auto;
}

.secili {
    transform: scale(1.1);
}

#basla-btn {
    padding: 15px;
    width: 100%;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 20px;
    margin-top: 15px;
    cursor: pointer;
    color: white;
}

#basla-btn:active {
    transform: translateY(3px);
    box-shadow: none !important;
}

/* --- RESPONSIVE KURALLAR --- */
/* PC Görünümünde Kontrolleri Gizle, Mobilde Asla Gizleme */
@media (hover: hover) and (pointer: fine) {
    #joy-alan, #ates-btn, #joy-base, #action-btn { display: none !important; }
}

@media (max-width: 1024px) {
    #joy-alan, #ates-btn, #joy-base, #action-btn { display: block !important; }
}

@media (max-width: 768px) {
    #ui { font-size: 14px; top: 15px; left: 15px; }
    #home-link-fixed { font-size: 11px; padding: 8px 12px; top: 15px; right: 15px; }
    #joy-alan { width: 100px; height: 100px; bottom: 20px; left: 20px; }
    #joy-top { width: 40px; height: 40px; top: 30px; left: 30px; }
    #ates-btn { width: 80px; height: 80px; bottom: 30px; right: 20px; font-size: 14px; border-width: 3px;}
    
    #menu { width: 95%; padding: 15px; }
    .lvl-btn { width: 45px; height: 45px; font-size: 14px; margin: 3px; }
    .silah-btn { font-size: 10px; padding: 6px; }
}
