body {
    margin: 0; padding: 0;
    background-color: #050510;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 4px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 3px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 4px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 100vh;
    overflow: hidden; user-select: none; touch-action: none;
}

.back-link {
    position: absolute; top: 20px; left: 20px;
    color: #777; text-decoration: none; font-family: 'Roboto', sans-serif; 
    font-weight: bold; font-size: 0.8rem;
    transition: color 0.3s; z-index: 100;
    display: flex; align-items: center; gap: 8px;
}
.back-link:hover { color: #00d2ff; }

.top-controls {
    position: absolute; top: 20px; right: 20px;
    display: flex; gap: 10px; z-index: 100;
}

.icon-btn {
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid #334; color: #aaa;
    width: 40px; height: 40px; border-radius: 8px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; font-size: 1rem; backdrop-filter: blur(2px);
}
.icon-btn:hover { background: #223; border-color: #00d2ff; color: #00d2ff; box-shadow: 0 0 15px rgba(0, 210, 255, 0.4); }

/* COMBO GÖSTERGESİ */
#combo-display {
    position: absolute; top: 80px; font-size: 2rem;
    color: #ffd700; text-shadow: 0 0 20px #ffaa00;
    transform: scale(1); opacity: 0; pointer-events: none; z-index: 20;
    transition: transform 0.1s;
}
.combo-pop { animation: pop 0.3s ease-out; }
@keyframes pop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.score-board {
    width: 800px; max-width: 95%; margin-bottom: 15px;
    display: flex; justify-content: center;
    font-size: 0.8rem; text-shadow: 0 0 10px rgba(255,255,255,0.3);
    text-transform: uppercase; z-index: 10;
}
#hud-single, #hud-multi { display: none; width: 100%; justify-content: space-between; }
.p1-score { color: #00ff88; text-shadow: 0 0 10px #00ff88; }
.p2-score { color: #00ccff; text-shadow: 0 0 10px #00ccff; }
.record-score { color: #ff0055; }

canvas {
    background-color: rgba(17, 17, 34, 0.85);
    border: 3px solid #00d2ff; border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.25);
    display: block; max-width: 98%; height: auto;
}

#overlay, #pause-menu, #market-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 16, 0.95);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 50; backdrop-filter: blur(8px);
}
#pause-menu { z-index: 60; background: rgba(5, 5, 16, 0.9); }

/* MARKET STİLLERİ */
.skins-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px;
    max-height: 60vh; overflow-y: auto; padding: 10px;
}
.skin-card {
    background: #1a1a2e; border: 2px solid #333; border-radius: 10px;
    padding: 15px; text-align: center; width: 140px;
    transition: all 0.2s; display: flex; flex-direction: column; align-items: center;
}
.skin-card:hover { border-color: #fff; transform: translateY(-5px); }
.skin-preview {
    width: 40px; height: 40px; border-radius: 50%; margin-bottom: 10px;
    box-shadow: 0 0 15px currentColor;
}
.skin-name { font-size: 0.6rem; color: #aaa; margin-bottom: 5px; }
.skin-price { font-size: 0.7rem; color: #ffd700; margin-bottom: 10px; }
.skin-btn {
    padding: 8px; font-size: 0.6rem; border: none; border-radius: 4px; cursor: pointer; width: 100%;
}
.btn-buy { background: #ffd700; color: #000; }
.btn-select { background: #333; color: #fff; border: 1px solid #555; }
.btn-selected { background: #00ff88; color: #000; cursor: default; }

.menu-currency {
    color: #ffd700; font-size: 1rem; margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-family: 'Roboto', sans-serif; font-weight: bold;
}

h1 { font-size: 2.2rem; color: #00d2ff; margin-bottom: 15px; text-align: center; text-shadow: 0 0 25px #00d2ff; }
h2 { font-size: 1.5rem; color: #fff; margin-bottom: 30px; }
p { color: #88a; font-family: 'Roboto', sans-serif; margin-bottom: 30px; text-align: center; font-size: 1rem;}

.btn-group { display: flex; flex-direction: column; gap: 15px; width: 220px; }

button {
    background: rgba(20, 20, 40, 0.8); color: #fff; border: 2px solid #00d2ff;
    padding: 15px; font-family: 'Press Start 2P', cursive; font-size: 0.75rem;
    cursor: pointer; box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
    transition: 0.2s; border-radius: 6px; text-transform: uppercase;
}
button:hover { background: #00d2ff; color: #050510; box-shadow: 0 0 25px #00d2ff; transform: translateY(-2px);}
.btn-market { border-color: #ffd700; color: #ffd700; }
.btn-market:hover { background: #ffd700; color: #000; box-shadow: 0 0 25px #ffd700; }
.btn-close { margin-top: 20px; border-color: #ff0055; width: auto; padding: 10px 30px; }
.btn-close:hover { background: #ff0055; color: #fff; box-shadow: 0 0 20px #ff0055; }

.controls-info { font-size: 0.65rem; color: #668; margin-top: 35px; line-height: 1.8; text-align: center; font-family: 'Roboto', sans-serif;}
.blink { animation: blink 1s infinite; color: #ff0055; text-shadow: 0 0 20px red; }
@keyframes blink { 50% { opacity: 0.5; } }

.mobile-controls {
    display: none;
    flex-direction: column; align-items: center; gap: 8px;
    margin-top: 15px; z-index: 100; position: relative;
}
.d-pad-row { display: flex; gap: 8px; }
.d-btn {
    width: 55px; height: 55px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ccc; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
    touch-action: manipulation; padding: 0;
}
.d-btn:active { background: rgba(0, 210, 255, 0.2); border-color: #00d2ff; color: #fff;}

@media (max-width: 820px) {
    canvas { width: 96vw; max-height: 60vh; }
    .score-board { width: 96%; font-size: 0.65rem; }
    .controls-info { display: none; }
    h1 { font-size: 1.6rem; }
    .skins-grid { grid-template-columns: repeat(2, 1fr); }
}