/* 3. bölüm: gamlar ve modlar */
.sc-main { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px 22px 22px; }
.sc-info { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.sc-big {
  margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.05;
  font-size: clamp(1.9rem, 3.2vw, 3rem); color: var(--ink);
}
.sc-big small { font-family: var(--f-body); font-size: 0.42em; font-weight: 500; color: var(--muted); margin-left: 0.6em; }
.sc-sub { margin: 0; color: var(--ink-2); font-size: 0.95rem; max-width: 52ch; }
.sc-pattern { margin: 2px 0 4px; display: flex; gap: 10px; font-size: 1.25rem; font-weight: 700; color: var(--ink-2); letter-spacing: 0.02em; }
.sc-pattern .c-tension, .sc-pattern .c-wave { font-weight: 700; }
.sc-legend { margin: 4px 0 0; font-size: 0.8rem; color: var(--muted); }
.sc-legend i { font-style: normal; font-weight: 700; }
.sc-char { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.sc-lab { color: var(--ink-2); font-size: 0.86rem; }

.sc-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 6px 0 4px; }
.sc-facts div { display: flex; flex-direction: column; }
.sc-facts b { font-size: 1.5rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.sc-facts span { font-size: 0.78rem; color: var(--muted); }

.sc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sc-chip {
  min-width: 2.4em; padding: 0.25em 0.5em; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--line); background: rgba(20, 9, 7, 0.4); color: var(--ink-2); font-weight: 600; font-size: 0.84rem;
}
.sc-chip:hover { border-color: var(--brass); color: var(--ink); }
.sc-chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.sc-board { position: relative; flex: none; }
.sc-bridges { display: block; width: 100%; height: 64px; overflow: visible; }
.sc-step { font-family: var(--f-body); font-size: 13px; font-weight: 700; }
.sc-step.on { font-size: 16px; }
.piano .key.lit.white { background: linear-gradient(180deg, #f8d98a, #f6ecd6 70%); }
.piano .key.lit.black { background: linear-gradient(180deg, #6b4a1e, #3f2820); box-shadow: 0 0 14px rgba(242,190,75,.6); }

/* modlar */
.sc-moderow { flex: 1; min-height: 0; display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); }
.sc-diskwrap { flex: none; height: 100%; max-height: 300px; min-height: 180px; aspect-ratio: 1; }
.sc-disk { width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; }
.sc-disk:active { cursor: grabbing; }
.sc-dnote { font-family: var(--f-body); font-size: 15px; font-weight: 700; pointer-events: none; }
.sc-dstep { font-family: var(--f-body); font-size: 11px; font-weight: 700; pointer-events: none; }
.sc-dcenter { font-family: var(--f-display); font-size: 17px; font-style: italic; font-weight: 600; pointer-events: none; }
.sc-modeinfo { justify-content: center; }

/* pentatonik: notaların izi */
.sc-trail { flex: 1; min-height: 120px; position: relative; }
.sc-trail canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (max-width: 860px) {
  .sc-main { padding: 14px 12px 16px; }
  .sc-moderow { flex-direction: column; align-items: stretch; }
  .sc-diskwrap { height: auto; width: min(260px, 70vw); max-height: none; align-self: center; }
  .piano .mk { font-size: 0.56rem; }
  .sc-bridges { height: 54px; }
  .sc-step { font-size: 11px; }
}
/* işaretli tuşta oktav etiketi yerine nota adı */
.sc-board .piano .key[class*="m-"]:not(.m-dim) .kl { display: none; }

/* ---------- Notaların adları ---------- */
.nn-top { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 22px 24px 10px; align-items: start; }
.nn-card { display: flex; gap: 22px; align-items: flex-start; }
.nn-big { display: flex; flex-direction: column; align-items: center; min-width: 4.2em; }
.nn-name { font-family: var(--f-display); font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: var(--tonic); }
.nn-oct { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.nn-rows { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.nn-row { display: grid; grid-template-columns: 9.5em 1fr; column-gap: 10px; align-items: baseline; padding: 3px 0 3px 10px; border-left: 2px solid var(--line-soft); }
.nn-row span { color: var(--muted); font-size: .82rem; }
.nn-row b { color: var(--ink); font-size: 1.05rem; font-weight: 600; }
.nn-row small { grid-column: 2; color: var(--ink-2); font-size: .76rem; }
.nn-row.on { border-left-color: var(--tonic); }
.nn-row.on b { color: var(--tonic); }
.nn-hymn { display: flex; flex-direction: column; gap: 2px; font-family: var(--f-display); font-style: italic; font-size: 1.12rem; color: var(--ink-2); padding-left: 16px; border-left: 1px solid var(--line); }
.nn-line { transition: color .2s; }
.nn-line b { font-style: normal; font-weight: 700; color: var(--ink); }
.nn-line.on { color: var(--ink); }
.nn-line.on b { color: var(--tonic); }
.nn-piano { padding: 0 16px 12px; }
.piano .key.nn-cur.white { background: linear-gradient(180deg, #f2d899, #f6e2b0 40%, #f2be4b); }
.piano .key.nn-cur.black { background: linear-gradient(180deg, #5a3a14, #8a5a1c); }
/* Türk müziği perde adları uzun: beyaz tuşlarda dikey yazılır */
.piano.nn-vertical .white .kl { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .66rem; white-space: nowrap; margin-bottom: 8px; }
@media (max-width: 860px) {
  .nn-top { grid-template-columns: 1fr; padding: 16px; }
  .nn-row { grid-template-columns: 8em 1fr; }
}
.nn-piano .piano { height: clamp(130px, 30vh, 270px); }

/* ---------- Nota yazısı (piyano portesi) ---------- */
.nt-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 4px; }
.nt-staff { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.nt-svg { width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.nt-svg .nt-line { stroke: rgba(239, 228, 204, 0.55); stroke-width: 1; }
.nt-svg .nt-bar { stroke: rgba(239, 228, 204, 0.55); stroke-width: 1.2; }
.nt-svg .nt-brace, .nt-svg .nt-clef { fill: var(--ink); }
.nt-svg .nt-hand { fill: var(--muted); font: 600 7.5px var(--f-body); }
.nt-svg .nt-tip { fill: rgba(201, 162, 90, 0.8); font: italic 600 7px var(--f-body); }
.nt-svg .nt-tip.mid { fill: rgba(242, 190, 75, 0.9); }
.nt-svg .nt-ledger { stroke: rgba(239, 228, 204, 0.7); stroke-width: 1.1; }
.nt-svg .nt-head { fill: var(--ink); }
.nt-svg .nt-stem { stroke: var(--ink); stroke-width: 1.2; }
.nt-svg .nt-acc { fill: var(--ink); font: 600 14px var(--f-body); }
.nt-svg .cur.nt-head, .nt-svg .cur.nt-acc { fill: var(--tonic); }
.nt-svg .cur.nt-stem { stroke: var(--tonic); }
.nt-svg .q.nt-head, .nt-svg .q.nt-acc { fill: var(--comma); }
.nt-svg .q.nt-stem { stroke: var(--comma); }
.nt-info { display: flex; align-items: center; gap: 18px; min-height: 3.6rem; border-top: 1px solid var(--line-soft); padding: 8px 4px 2px; }
.nt-name { font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--tonic); min-width: 2.4em; }
.nt-name.q { color: var(--comma); }
.nt-det { display: flex; flex-direction: column; gap: 2px; }
.nt-sub { color: var(--ink); font-size: .92rem; }
.nt-pos { color: var(--ink-2); font-size: .86rem; line-height: 1.4; }
.nt-msg { font-weight: 700; color: var(--tonic); }
.nt-hint { color: var(--muted); font-size: .88rem; margin: 0; }
.nt-piano { padding: 0 16px 10px; }
@media (max-width: 860px) {
  #nota-yazisi .stage .fill, .nt-staff { min-height: 230px; }
  .nt-wrap { padding: 8px 6px 4px; }
  .nt-piano .kl { font-size: .5rem; }
}
