* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #ffe6f2;
}

#canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Canlı Yayın Arayüz Katmanı */
.stream-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none; /* Tıklamaların 3D sahneye geçmesine izin verir, butonlar aktif kalır */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
}

.stream-overlay button, 
.stream-overlay .gift-panel, 
.stream-overlay .chat-container {
    pointer-events: auto; /* Butonlar ve paneller tıklanabilir */
}

/* Üst Bar */
.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    backdrop-filter: blur(5px);
}

.streamer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-badge {
    background-color: #ff3366;
    color: white;
    padding: 4px 10px;
    font-weight: bold;
    font-size: 12px;
    border-radius: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.streamer-name {
    color: #d63384;
    font-weight: bold;
    font-size: 16px;
}

.viewer-count {
    color: #555;
    font-size: 14px;
}

.coins-container {
    background: #fff0f5;
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: bold;
    color: #ff1493;
    border: 2px solid #ffb6c1;
}

/* Sohbet Kutusu (Sol) */
.chat-container {
    position: absolute;
    bottom: 80px;
    left: 15px;
    width: 280px;
    height: 200px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 15px;
    padding: 10px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-msg {
    font-size: 13px;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 8px;
    border-radius: 8px;
}

/* Hediye Paneli (Sağ) */
.gift-panel {
    position: absolute;
    top: 80px;
    right: 15px;
    width: 240px;
    max-height: 400px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.gift-panel h3 {
    color: #d63384;
    font-size: 15px;
    margin-bottom: 8px;
    text-align: center;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gift-btn {
    background: #ffc0cb;
    border: none;
    border-radius: 10px;
    padding: 8px;
    font-size: 12px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.gift-btn:hover {
    background: #ff69b4;
    color: white;
    transform: scale(1.05);
}

.gift-btn span {
    font-size: 10px;
    color: #888;
}

.gift-btn:hover span {
    color: #fff;
}

.lion-btn {
    grid-column: span 2;
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    color: white;
}

/* Alt Kontrol Paneli */
.bottom-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ctrl-btn {
    background: #ff69b4;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.ctrl-btn:hover {
    background: #ff1493;
    transform: scale(1.05);
}

.reset-btn {
    background: #3399ff;
}

.reset-btn:hover {
    background: #0073e6;
}

.end-btn {
    background: #ff3333;
}

.end-btn:hover {
    background: #cc0000;
}

/* Hediye Popup Animasyon Alanı */
.animation-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    font-weight: bold;
    color: #ff1493;
    text-shadow: 0 0 20px white;
    pointer-events: none;
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 100;
}

