/* Oyun içi koçluk: spot ışığı halkası + balon (ogretici-koc.js) */
.koc-halka {
  position: fixed; z-index: 84; pointer-events: none; border: 3px solid #e3c27a; border-radius: 10px;
  box-shadow: 0 0 0 100vmax rgba(12, 9, 6, .5), 0 0 22px 6px rgba(227, 194, 122, .75);
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
  animation: koc-nabiz 1.6s ease-in-out infinite;
}
.koc-halka[hidden], .koc-balon[hidden] { display: none; }
@keyframes koc-nabiz { 50% { border-color: #fff0c4; box-shadow: 0 0 0 100vmax rgba(12, 9, 6, .5), 0 0 30px 10px rgba(255, 224, 150, .85); } }

.koc-balon {
  position: fixed; z-index: 85; width: min(360px, calc(100vw - 20px)); box-sizing: border-box; padding: 12px 14px 12px;
  background: #f6f0df; color: #23201c; border: 2px solid #8a6a22; border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55); font-family: var(--ui, system-ui, sans-serif);
}
.koc-balon.ok { border-color: #2f7d4a; background: #eaf4e6; }
.koc-ust { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.koc-sayac { font: 700 11.5px var(--type, monospace); letter-spacing: .06em; text-transform: uppercase; color: #8a6a22; }
.koc-noktalar { display: flex; gap: 3px; flex: 1; flex-wrap: wrap; }
.koc-noktalar i { width: 6px; height: 6px; border-radius: 50%; background: #cdbf9b; }
.koc-noktalar i.bitti { background: #2f7d4a; }
.koc-noktalar i.su { background: #c2410c; transform: scale(1.3); }
.koc-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #5d574d; font-size: 22px; line-height: 1; cursor: pointer; }
.koc-x:hover { background: rgba(0, 0, 0, .08); }
.koc-balon h3 { margin: 0 0 4px; font-size: 16px; }
.koc-balon p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.45; }
.koc-alt { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.koc-btn {
  min-height: 40px; padding: 8px 14px; border: 1px solid #8a6a22; border-radius: 8px; background: #fff9e8;
  color: #23201c; font: 600 13.5px var(--ui, system-ui, sans-serif); cursor: pointer; touch-action: manipulation;
}
.koc-btn.ana { background: #8a6a22; color: #fff; }
.koc-btn:hover { filter: brightness(1.06); }

/* renkli eşleşme: itiraz edilen cümle, defterdeki ifade/kanıt kutuları ve belge satırları aynı renk (A) */
.koc-es { --koc-a: #c2410c; }
#viewer .satir.c.koc-es, .notebook .slot.koc-es { box-shadow: inset 6px 0 0 var(--koc-a); background-color: rgba(194, 65, 12, .12); }
#viewer tr.koc-es > td { background: rgba(194, 65, 12, .16); }
#viewer tr.koc-es > td:first-child { box-shadow: inset 6px 0 0 var(--koc-a); }
#viewer .satir.c.koc-es .kim::before, .notebook .slot.koc-es > b::before, #viewer tr.koc-es > td:first-child::before {
  content: "A"; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 6px; border-radius: 50%;
  background: var(--koc-a); color: #fff; font: 700 11px var(--ui, sans-serif); vertical-align: 1px;
}

@media (max-width: 860px) { .koc-balon { width: auto; } }
@media (prefers-reduced-motion: reduce) { .koc-halka { animation: none; transition: none; } }
#viewer tr.koc-es > td:first-child { position: relative; }
#viewer tr.koc-es > td:first-child::before { position: absolute; left: -22px; top: 50%; margin: -8px 0 0; }
