* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none; /* Metin seçimini engelle, oyun hissi versin */
}

body {
    background: #0f0c29; 
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.game-container {
    display: flex;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

/* SOL PANEL - OYUN ALANI */
.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border-right: 2px solid rgba(255,255,255,0.1);
    position: relative;
}

.game-title {
    font-size: 28px;
    font-weight: 800;
    color: #f1c40f;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(241, 196, 15, 0.5);
}

.stats-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

.main-score {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
}

.currency {
    font-size: 20px;
    color: #f1c40f;
}

.sub-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    font-size: 14px;
    color: #aaa;
}

.highlight {
    color: #2ecc71;
    font-weight: bold;
}

/* TIKLAMA BÖLGESİ */
.click-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-gem {
    font-size: 120px;
    cursor: pointer;
    transition: transform 0.05s, filter 0.2s;
    filter: drop-shadow(0 0 20px rgba(52, 152, 219, 0.6));
}

#main-gem:active {
    transform: scale(0.9);
    filter: drop-shadow(0 0 40px rgba(52, 152, 219, 1));
}

/* Tıklayınca Çıkan Uçan Yazılar */
.floating-text {
    position: fixed;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    animation: floatUp 1s ease-out forwards;
    z-index: 100;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

.reset-btn {
    margin-top: 20px;
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.reset-btn:hover {
    background: #e74c3c;
    color: #fff;
}

/* SAĞ PANEL - MARKET */
.right-panel {
    flex: 1;
    padding: 30px;
    background: rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.shop-title {
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.shop-list {
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
}

/* Market Eşyaları */
.shop-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
}

.shop-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(-5px);
}

.shop-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.shop-item.disabled:hover {
    transform: none;
    background: rgba(255,255,255,0.05);
}

.item-info h4 {
    font-size: 18px;
    color: #3498db;
    margin-bottom: 5px;
}

.item-desc {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}

.item-cost {
    font-size: 14px;
    color: #e67e22;
    font-weight: bold;
}

.item-count {
    font-size: 24px;
    font-weight: bold;
    color: #2ecc71;
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 8px;
}

/* Scrollbar Tasarımı */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }