:root {
    --bg-color: #2c3e50;
    --text-color: #ecf0f1;
    --main-accent: #3498db;
    
    --c-do: #e74c3c;
    --c-re: #e67e22;
    --c-mi: #f1c40f;
    --c-fa: #2ecc71;
    --c-sol: #3498db;
    --c-la: #9b59b6;
    --c-si: #95a5a6;

    --note-size: 100px;
    --circle-radius: 170px; /* Dairenin yarıçapı */
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow: hidden; 
}

.game-container {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 90%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: var(--main-accent); letter-spacing: 2px; margin-bottom: 1rem; font-size: 2.2rem;
}

.info-panel {
    display: flex; justify-content: center; gap: 20px; margin-bottom: 2rem; font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.2); padding: 8px 15px; border-radius: 8px; align-items: center;
}

#status { color: var(--text-color); }

.note-pads-container {
    position: relative;
    width: calc(var(--circle-radius) * 2);
    height: calc(var(--circle-radius) * 2);
    margin: 2rem auto 4rem auto; /* Üstten ve alttan boşluk */
    display: flex;
    justify-content: center;
    align-items: center;
}

.note-pad {
    position: absolute;
    width: var(--note-size);
    height: var(--note-size);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    user-select: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    border-radius: 20%;
}

/* Ortadaki FA Notası - En garantili ortalama yöntemi */
.center-note {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--note-size) * 1.1);
    height: calc(var(--note-size) * 1.1);
    border-radius: 50%;
    background-color: var(--c-fa);
    z-index: 10;
}

/* --- BU KISIM TÜM SORUNU ÇÖZÜYOR --- */
/* Her nota için ayrı ayrı konumlandırma. 
   calc() ve transform ile her biri mükemmel bir daire üzerine yerleştirilir. */

[data-note="sol"] { transform: translate( calc(var(--circle-radius) * cos(90deg)), calc(var(--circle-radius) * sin(90deg) * -1) ); background-color: var(--c-sol);}
[data-note="mi"]  { transform: translate( calc(var(--circle-radius) * cos(30deg)), calc(var(--circle-radius) * sin(30deg) * -1) ); background-color: var(--c-mi);}
[data-note="do"]  { transform: translate( calc(var(--circle-radius) * cos(-30deg)), calc(var(--circle-radius) * sin(-30deg) * -1) ); background-color: var(--c-do);}
[data-note="re"]  { transform: translate( calc(var(--circle-radius) * cos(-90deg)), calc(var(--circle-radius) * sin(-90deg) * -1) ); background-color: var(--c-re);}
[data-note="la"]  { transform: translate( calc(var(--circle-radius) * cos(-150deg)), calc(var(--circle-radius) * sin(-150deg) * -1) ); background-color: var(--c-la);}
[data-note="si"]  { transform: translate( calc(var(--circle-radius) * cos(150deg)), calc(var(--circle-radius) * sin(150deg) * -1) ); background-color: var(--c-si);}


/* Efektler */
.note-pad.active, .note-pad:active { transform: translate(-50%, -50%) scale(0.9); }
.note-pad:hover { z-index: 11; transform: scale(1.1); }

/* Merkezdeki notanın efektleri diğerlerinden ayrı olmalı */
.center-note:hover { transform: translate(-50%, -50%) scale(1.1); }
.center-note.active, .center-note:active { transform: translate(-50%, -50%) scale(0.9); box-shadow: 0 0 25px 8px rgba(255, 255, 255, 0.7); }

/* Hover durumunda diğer transformları ezmemesi için tekrar tanımlama */
[data-note="sol"]:hover { transform: translate( calc(var(--circle-radius) * cos(90deg)), calc(var(--circle-radius) * sin(90deg) * -1) ) scale(1.1); }
[data-note="mi"]:hover  { transform: translate( calc(var(--circle-radius) * cos(30deg)), calc(var(--circle-radius) * sin(30deg) * -1) ) scale(1.1); }
[data-note="do"]:hover  { transform: translate( calc(var(--circle-radius) * cos(-30deg)), calc(var(--circle-radius) * sin(-30deg) * -1) ) scale(1.1); }
[data-note="re"]:hover  { transform: translate( calc(var(--circle-radius) * cos(-90deg)), calc(var(--circle-radius) * sin(-90deg) * -1) ) scale(1.1); }
[data-note="la"]:hover  { transform: translate( calc(var(--circle-radius) * cos(-150deg)), calc(var(--circle-radius) * sin(-150deg) * -1) ) scale(1.1); }
[data-note="si"]:hover  { transform: translate( calc(var(--circle-radius) * cos(150deg)), calc(var(--circle-radius) * sin(150deg) * -1) ) scale(1.1); }


#start-btn {
    background-color: var(--main-accent); color: white; border: none; padding: 15px 40px; font-size: 1.3rem;
    font-family: 'Nunito', sans-serif; border-radius: 30px; cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); font-weight: bold; text-transform: uppercase;
}
#start-btn:hover { background-color: #2980b9; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
#start-btn:active { transform: scale(0.98); box-shadow: 0 2px 10px rgba(0,0,0,0.2); }

footer { position: relative; margin-top: 2rem; width: 100%; text-align: center; font-size: 0.9rem; }
footer a { color: var(--main-accent); text-decoration: none; font-weight: bold; }
footer a:hover { text-decoration: underline; }
footer p { margin-top: 5px; color: #bdc3c7; }

@media (max-width: 768px) { :root { --note-size: 80px; --circle-radius: 140px; } }
@media (max-width: 480px) { :root { --note-size: 65px; --circle-radius: 120px; } .game-container { padding: 1.5rem 0.5rem; } }