/* hizli-cevap.css — Hızlı Cevap Düellosu'na özel stiller.
   Tüm renkler tema token'larından (sabit hex yok). game.css'e dokunmaz. */

.hc-wrap { max-width: 640px; margin: 0 auto; }

/* Kategori ekranı üst metin + puanlama */
.hc-intro { text-align: center; color: var(--color-text-muted); margin: 0 auto 18px; max-width: 540px; }

.hc-scoring {
  max-width: 520px; margin: 4px auto 24px;
  border: 1px solid var(--color-border, rgba(0,0,0,.08)); border-radius: 12px;
  background: var(--color-surface);
}
.hc-scoring summary {
  cursor: pointer; padding: 11px 16px; font-weight: 600; font-size: .88rem;
  color: var(--color-text); list-style: none;
}
.hc-scoring summary::-webkit-details-marker { display: none; }
.hc-scoring summary::after { content: "▾"; float: right; color: var(--color-text-muted); transition: transform .15s; }
.hc-scoring[open] summary::after { transform: rotate(180deg); }
.hc-scoring[open] summary { border-bottom: 1px solid var(--color-border, rgba(0,0,0,.08)); }
.hc-scoring ul { margin: 0; padding: 12px 18px 14px 32px; color: var(--color-text-muted); font-size: .85rem; line-height: 1.7; }

/* Liderlik tablosu sekmeleri */
.hc-lb-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.hc-lb-tab {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--color-border, rgba(0,0,0,.1)); background: var(--color-surface);
  color: var(--color-text); font: inherit; font-size: .82rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background-color .12s, border-color .12s, color .12s;
}
.hc-lb-tab:hover { border-color: var(--primary-400); }
.hc-lb-tab--active { background: var(--primary-500); border-color: var(--primary-500); color: var(--on-primary); }
.hc-lb-tab:focus-visible { outline: 3px solid var(--primary-400); outline-offset: 2px; }

/* Günlük | Haftalık dönem geçişi (segmented control) */
.hc-lb-period {
  display: inline-flex; gap: 4px; margin-bottom: 10px; padding: 4px;
  border-radius: 999px; background: var(--color-surface-2, var(--color-surface));
  border: 1px solid var(--color-border, rgba(0,0,0,.1));
}
.hc-lb-period-btn {
  appearance: none; border: 0; cursor: pointer; white-space: nowrap;
  padding: 6px 16px; border-radius: 999px; background: transparent;
  color: var(--color-text-muted); font: inherit; font-size: .82rem; font-weight: 600;
  transition: background-color .12s, color .12s;
}
.hc-lb-period-btn:hover { color: var(--color-text); }
.hc-lb-period-btn--active {
  background: var(--primary-500); color: var(--on-primary);
}
.hc-lb-period-btn:focus-visible { outline: 3px solid var(--primary-400); outline-offset: 2px; }

.hc-lb-list { min-height: 60px; }

/* Kullanıcının kendi sırası (ilk 10 dışındaysa) */
.hc-myrank { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--color-border, rgba(0,0,0,.15)); }
.hc-myrank-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary-600); margin-bottom: 6px; }
.hc-myrank-none { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--color-border, rgba(0,0,0,.15)); text-align: center; color: var(--color-text-muted); font-size: .82rem; }

/* --- Kategori seçimi --- */
.hc-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 8px 0 20px;
}
.hc-cat {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 14px;
  border: 2px solid var(--color-border, rgba(0,0,0,.1));
  border-radius: 16px;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  font: inherit; font-weight: 600;
  transition: border-color .15s, transform .1s, box-shadow .15s;
}
.hc-cat:hover { border-color: var(--primary-400); transform: translateY(-2px); }
.hc-cat:focus-visible { outline: 3px solid var(--primary-400); outline-offset: 2px; }
.hc-cat .material-symbols-outlined { font-size: 32px; color: var(--primary-500); }
.hc-cat-count { font-size: .74rem; color: var(--color-text-muted); font-weight: 500; }

/* --- Üst bar (süre + skor + seri) --- */
.hc-hud {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 16px;
}
.hc-hud-item { text-align: center; flex: 1; }
.hc-hud-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); }
.hc-hud-value { font-size: 1.4rem; font-weight: 800; color: var(--color-text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hc-hud-value.hc-streak--hot { color: var(--primary-500); }

.hc-timerbar {
  height: 8px; border-radius: 999px; overflow: hidden;
  background: var(--color-border, rgba(0,0,0,.08)); margin-bottom: 20px;
}
.hc-timerbar-fill {
  height: 100%; width: 100%;
  background: var(--primary-500);
  transition: width .25s linear, background-color .3s;
}
.hc-timerbar-fill.hc-low { background: var(--primary-600); }

/* --- Soru + şıklar --- */
.hc-question {
  font-size: 1.12rem; font-weight: 700; line-height: 1.45;
  color: var(--color-text); margin: 0 0 20px; min-height: 3.2em;
}
.hc-options { display: grid; gap: 10px; }
.hc-opt {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 14px 16px;
  border: 2px solid var(--color-border, rgba(0,0,0,.1));
  border-radius: 12px;
  background: var(--color-surface); color: var(--color-text);
  font: inherit; font-size: .98rem; font-weight: 500;
  cursor: pointer;
  transition: border-color .12s, background-color .12s;
}
.hc-opt:hover:not(:disabled) { border-color: var(--primary-400); }
.hc-opt:focus-visible { outline: 3px solid var(--primary-400); outline-offset: 2px; }
.hc-opt-letter {
  flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--primary-500); color: var(--on-primary); font-weight: 700; font-size: .85rem;
}
.hc-opt--correct { border-color: #16a34a; background: rgba(22,163,74,.12); }
.hc-opt--correct .hc-opt-letter { background: #16a34a; }
.hc-opt--wrong { border-color: #dc2626; background: rgba(220,38,38,.12); }
.hc-opt--wrong .hc-opt-letter { background: #dc2626; }
.hc-opt:disabled { cursor: default; }

/* --- Sonuç ekranı --- */
.hc-result { text-align: center; padding: 8px 0; }
.hc-result-score { font-size: 3rem; font-weight: 900; color: var(--primary-500); line-height: 1; }
.hc-result-label { color: var(--color-text-muted); font-size: .85rem; margin-bottom: 6px; }
/* Puan kırılımı — "Verim 429 · Hız 201 · Seri 100" (şeffaf puanlama) */
.hc-result-breakdown {
  font-size: .8rem; font-weight: 600; color: var(--color-text-muted);
  margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.hc-result-stats { display: flex; justify-content: center; gap: 24px; margin: 18px 0 26px; flex-wrap: wrap; }
.hc-result-stat b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--color-text); }
.hc-result-stat span { font-size: .74rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .03em; }
.hc-result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

/* --- Liderlik tablosu --- */
.hc-board { margin-top: 28px; }
.hc-board-title { font-size: 1rem; font-weight: 700; margin: 0 0 4px; color: var(--color-text); display: flex; align-items: center; gap: 6px; }
.hc-board-sub { font-size: .74rem; color: var(--color-text-muted); margin: 0 0 14px; }
.hc-board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hc-board-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border, rgba(0,0,0,.06));
}
.hc-board-row--me { border-color: var(--primary-500); background: rgba(19,200,236,.06); }
.hc-board-rank { flex: 0 0 auto; width: 26px; font-weight: 800; color: var(--color-text-muted); text-align: center; }
.hc-board-rank--top { color: var(--primary-500); }
.hc-board-name { flex: 1; font-weight: 600; color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-board-score { font-weight: 800; color: var(--color-text); font-variant-numeric: tabular-nums; }
.hc-board-empty, .hc-board-loading { text-align: center; color: var(--color-text-muted); font-size: .85rem; padding: 20px 0; }

.hc-guest-cta {
  margin-top: 18px; padding: 16px; border-radius: 12px; text-align: center;
  background: rgba(19,200,236,.06); border: 1px dashed var(--primary-400);
}
.hc-guest-cta p { margin: 0 0 12px; color: var(--color-text); font-size: .9rem; }

/* --- Nickname modal --- */
.hc-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: grid; place-items: center; z-index: 1000; padding: 20px;
}
.hc-modal {
  background: var(--color-surface); color: var(--color-text);
  border-radius: 16px; padding: 24px; max-width: 380px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.hc-modal h3 { margin: 0 0 6px; font-size: 1.15rem; }
.hc-modal p { margin: 0 0 16px; font-size: .85rem; color: var(--color-text-muted); }
.hc-modal input {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 2px solid var(--color-border, rgba(0,0,0,.15)); border-radius: 10px;
  background: var(--color-background); color: var(--color-text); margin-bottom: 14px;
}
.hc-modal input:focus-visible { outline: none; border-color: var(--primary-500); }
.hc-modal-actions { display: flex; gap: 10px; }

@media (max-width: 420px) {
  .hc-result-score { font-size: 2.4rem; }
  .hc-question { font-size: 1.02rem; }
}

/* ---- Genel Sıralama (js/overall-leaderboard.js) ----
   Üç oyunun tek tabloda birleştiği sıralama; /oyunlar sayfasında kullanılır.
   Satır düzeni tek oyunlu tablodan farklı: adın ALTINDA oyun kırılımı var
   (Hızlı Cevap 890 · Eşleştirme 940 · Hafıza 910), sağda toplam. */
.ol-row { align-items: flex-start; }
.ol-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ol-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.ol-part {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--color-background);
  border: 1px solid var(--color-border, rgba(0,0,0,.06));
  font-size: .72rem; line-height: 1.5;
}
.ol-part-name { color: var(--color-text-muted); }
.ol-part-score { font-weight: 800; color: var(--color-text); font-variant-numeric: tabular-nums; }
/* Oynanmamış oyun: soluk ama okunur — "burada puanın yok" bilgisi motive edicidir. */
.ol-part--empty { opacity: .55; }
.ol-part--empty .ol-part-score { color: var(--color-text-muted); }
.ol-row .hc-board-score { padding-top: 2px; }

@media (max-width: 420px) {
  .ol-part { font-size: .68rem; padding: 2px 7px; }
}
