/* Ne Demek — Aussehen.

   Ruhig und fast schwarz-weiß, mit einer einzigen Akzentfarbe. Große Schrift und
   große Flächen: das Kind soll tippen können, ohne zu zielen. Bewusst keine
   Verzierung — was nicht zum Verstehen des Wortes beiträgt, ist hier nichts. */

:root {
  --papier: #ffffff;
  --tinte: #16181d;
  --leise: #6b7280;
  --linie: #e6e8ec;
  --akzent: #1f6feb;
  --dogru: #157f4b;
  --dogru-zemin: #e8f6ee;
  --yanlis: #b4451c;
  --rundung: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--papier);
  color: var(--tinte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

/* --------------------------------------------------------------- Vorhänge */

.perde {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
}

.marka {
  margin: 0;
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dar {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.etiket {
  font-size: 15px;
  color: var(--leise);
}

/* ------------------------------------------------------- Felder und Knöpfe */

input[type="text"], input[type="password"] {
  width: 100%;
  font: inherit;
  font-size: 22px;
  padding: 16px 18px;
  border: 2px solid var(--linie);
  border-radius: var(--rundung);
  background: var(--papier);
  color: var(--tinte);
}

input[type="text"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: var(--akzent);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.birincil {
  background: var(--tinte);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: var(--rundung);
  min-height: 60px;
}

.birincil:disabled { opacity: .4; }

.ikincil {
  color: var(--leise);
  font-size: 17px;
  padding: 12px 18px;
}

.metin-dugme {
  color: var(--leise);
  font-size: 16px;
  padding: 10px 12px;
}

.onay {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: var(--leise);
  padding: 6px 2px;
}

.onay input { width: 22px; height: 22px; }

.hata {
  color: var(--yanlis);
  font-size: 16px;
  margin: 4px 0 0;
}

/* ------------------------------------------------------------- Kim var? */

.kisiler {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.kisi-kart {
  width: 140px;
  padding: 24px 12px;
  border: 2px solid var(--linie);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
}

.kisi-kart .yuz { font-size: 44px; line-height: 1; }
.kisi-kart:active { border-color: var(--akzent); }

.emojiler {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.emojiler button {
  font-size: 30px;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 2px solid transparent;
}

.emojiler button[aria-pressed="true"] {
  border-color: var(--akzent);
  background: #f2f6fd;
}

/* ------------------------------------------------------------ Hauptseite */

#ana {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: calc(12px + env(safe-area-inset-top));
}

.kisi-rozet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  color: var(--leise);
  padding: 10px 12px;
}

.arama {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.arama input { flex: 1; min-width: 0; font-size: 24px; }

.mikrofon {
  width: 64px;
  border: 2px solid var(--linie);
  border-radius: var(--rundung);
  display: grid;
  place-items: center;
  flex: none;
}

.mikrofon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--tinte);
  stroke-width: 2;
  stroke-linecap: round;
}

.mikrofon[aria-pressed="true"] {
  border-color: var(--akzent);
  background: #f2f6fd;
}

.mikrofon:disabled { opacity: .35; }

.ipucu {
  margin: -8px 0 0;
  color: var(--akzent);
  font-size: 17px;
}

/* -------------------------------------------------------------- Antwort */

.cevap {
  border: 2px solid var(--linie);
  border-radius: 24px;
  padding: 24px;
}

.baslik-satiri {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.baslik-satiri h2 {
  margin: 0;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1;
}

.ses-dugme {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--linie);
  display: grid;
  place-items: center;
}

.ses-dugme svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--tinte);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ses-dugme[aria-pressed="true"] { border-color: var(--akzent); background: #f2f6fd; }

.aciklama {
  margin: 0;
  font-size: clamp(21px, 4vw, 26px);
  line-height: 1.5;
}

.parcalar {
  margin: 18px 0 0;
  font-size: 21px;
  font-weight: 600;
  color: var(--akzent);
}

.ornek {
  margin: 14px 0 0;
  font-size: 19px;
  color: var(--leise);
  font-style: italic;
}

/* ---------------------------------------------------------------- Frage */

.soru-metni {
  margin: 0 0 14px;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 600;
}

.secenekler {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.secenek {
  font-size: 21px;
  padding: 20px 22px;
  border: 2px solid var(--linie);
  border-radius: var(--rundung);
  text-align: start;
  min-height: 68px;
}

.secenek:disabled { opacity: 1; }
.secenek.dogru { border-color: var(--dogru); background: var(--dogru-zemin); color: var(--dogru); font-weight: 600; }
.secenek.yanlis { border-color: var(--yanlis); color: var(--yanlis); }

/* -------------------------------------------------------------- Ergebnis */

.sonuc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.sonuc p {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.sonuc p.iyi { color: var(--dogru); }

/* ------------------------------------------------------------- Wortliste */

.defter-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(520px, 100%);
  max-height: 60vh;
  overflow-y: auto;
}

.defter-liste li {
  padding: 16px 4px;
  border-bottom: 1px solid var(--linie);
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.defter-liste li span { color: var(--leise); font-size: 16px; }

/* ------------------------------------------------------------ Verbrauch */

/* Klein, hellgrau, am Rand. Es soll nicht auffallen, aber jederzeit ablesbar
   sein — wer sieht, was das Fragen kostet, muss es nicht am Monatsende
   erfahren. */

.masraf {
  position: fixed;
  right: calc(12px + env(safe-area-inset-right));
  bottom: calc(10px + env(safe-area-inset-bottom));
  margin: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--linie);
  pointer-events: none;
}
