:root {
  --zemin: #f6f5f1; --kart: #ffffff; --metin: #1f2328; --soluk: #5f6670; --cizgi: #d9d6cf;
  --iyi: #1a7f37; --kotu: #c0392b; --vurgu: #6b4fbb; --gunes: #f77f00; --uzay: #0f1a3a;
  --yazi: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; overflow-x: hidden; }
body { background: var(--zemin); color: var(--metin); font: var(--yazi)/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#uygulama { max-width: 1280px; margin: 0 auto; padding: 12px 16px 24px; }
#baslik { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
#baslik h1 { font-size: 1.4em; margin: 4px 0; }
.baslik-sag { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#sekmeler { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; }
#sekmeler button { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--metin); background: var(--metin); color: #fff; font: inherit; }

.btn { min-height: 44px; min-width: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--cizgi); font: inherit; cursor: pointer; touch-action: manipulation; }
.btn.birincil { background: var(--gunes); color: #fff; border-color: transparent; font-weight: 700; }
.btn.ikincil { background: var(--kart); color: var(--metin); }
.btn.kucuk { min-height: 40px; padding: 4px 10px; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); font-size: .9em; }
.anahtar { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.anahtar input { width: 22px; height: 22px; accent-color: var(--vurgu); }
.anahtar.acik { color: #dfe7ff; font-size: .9em; }

.duzen { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .duzen { grid-template-columns: minmax(0, 1fr) minmax(330px, 410px); align-items: start; } }
.sutun { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kart { background: var(--kart); border: 1px solid var(--cizgi); border-radius: 14px; padding: 10px 12px; min-width: 0; box-shadow: 0 2px 6px rgba(31,35,40,.05); }
.kart h2 { font-size: 1.08em; margin: 0 0 8px; }
.kart.karanlik { background: var(--uzay); border-color: #22305e; color: #e8eeff; }
.kart.karanlik h2 { color: #fff; }
.sahne { display: block; width: 100%; border-radius: 10px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
#yakin, #ogle { cursor: default; touch-action: pan-y; }
.kucuk-sahne { margin: 8px 0; border: 1px solid var(--cizgi); }
.arac-satir { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }

.tarih-kutu { margin-top: 10px; }
.tarih-ust { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tarih-yazi { font-size: 1.6em; font-weight: 800; color: #fff; line-height: 1.1; }
.tarih-olay { color: #ffd166; font-weight: 600; min-height: 1.3em; }
input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--gunes); }
.secim { display: flex; gap: 6px; flex-wrap: wrap; }
.secim button { flex: 1 1 0; min-height: 48px; min-width: 64px; border-radius: 10px; border: 1px solid var(--cizgi); background: var(--zemin); font: inherit; font-weight: 700; cursor: pointer; color: var(--metin); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; padding: 4px 6px; touch-action: manipulation; }
.secim button small { font-weight: 400; font-size: .78em; opacity: .85; }
.secim button[aria-pressed="true"] { background: var(--vurgu); color: #fff; border-color: var(--vurgu); }
.secim button.dogru { background: var(--iyi); color: #fff; border-color: var(--iyi); }
.secim button.yanlis { background: var(--kotu); color: #fff; border-color: var(--kotu); }
.secim.dikey { flex-direction: column; }
.secim.dikey button { flex: 0 0 auto; align-items: flex-start; text-align: left; font-weight: 600; padding: 8px 12px; }
.karanlik .secim button { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.karanlik .secim button[aria-pressed="true"] { background: var(--gunes); border-color: var(--gunes); }
.hiz-satir { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.hiz-satir .secim { flex: 1; }
.hiz-satir .secim button { min-height: 40px; }

.tr-mevsim { font-size: 1.7em; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.tr-mevsim .emoji { font-size: 1.2em; }
.gunduz-bar { height: 22px; border-radius: 11px; background: #1f3b73; overflow: hidden; margin-top: 6px; }
.gunduz { height: 100%; background: linear-gradient(90deg, #ffd166, #f9a03f); transition: width .25s; }
.gunduz-yazi { display: flex; justify-content: space-between; font-weight: 700; font-size: .92em; margin-top: 3px; }
.gunduz-yazi span:last-child { color: #1f3b73; }
dl.gost { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 0; }
dl.gost div { background: var(--zemin); border-radius: 10px; padding: 6px 10px; min-width: 0; }
dl.gost dt { font-size: .78em; color: var(--soluk); }
dl.gost dd { margin: 0; font-weight: 700; }
table.tablo { border-collapse: collapse; width: 100%; font-size: .94em; }
table.tablo th, table.tablo td { border: 1px solid var(--cizgi); padding: 6px; text-align: center; }
table.tablo thead th { background: var(--zemin); font-size: .85em; }
.dik-yer { margin: 8px 0 0; }
.formul { background: #f1effa; border-radius: 8px; padding: 6px 10px; font-size: .9em; margin-top: 8px; }

.ipucu { font-size: .84em; color: var(--soluk); margin: 6px 2px 0; }
.ipucu.acik, .karanlik .ipucu { color: #b9c6ea; }
.klavye { text-align: center; }
.mesaj { background: #eef3ff; border-left: 5px solid #2563c9; border-radius: 10px; padding: 8px 12px; margin: 8px 0 0; }
.senaryo { border: 2px solid var(--vurgu); }
.soru-metni { font-size: 1.03em; font-weight: 600; margin: 8px 0; }
.sonuc { margin-top: 8px; }
.geri.dogru { color: var(--iyi); font-weight: 700; } .geri.yanlis { color: var(--kotu); font-weight: 700; }
.yanilgi { background: #fdecea; border-left: 5px solid var(--kotu); border-radius: 10px; padding: 10px 12px; font-size: .94em; }
.yanilgi p { margin: 4px 0 0; }
.puf { background: #fff6e0; border-left: 5px solid #e2a400; border-radius: 10px; padding: 10px 12px; font-size: .93em; }
.puf ul { margin: 4px 0 0; padding-left: 20px; }
.ogr-only { display: none !important; }
body.ogretmen .ogr-only { display: inline-flex !important; }

body.gomulu #baslik h1 { display: none; }
body.gomulu #uygulama { padding: 4px 6px; }
body.tahta { --yazi: 21px; }
body.tahta #uygulama { max-width: none; }
@media (max-width: 420px) { #uygulama { padding: 8px 10px 20px; } .kart { padding: 8px 9px; } .tarih-yazi { font-size: 1.35em; } }

/* Yer seçimi, sayısal ölçümler, eğimsiz karşılaştırma */
.yer-sec { margin-bottom: 8px; }
.yer-sec button { min-width: 70px; }
.btn.kucuk.egimsiz { background: #e63946; border-color: #e63946; font-weight: 700; }
.btn.kucuk.egimsiz[aria-pressed="true"] { background: #2a9d8f; border-color: #2a9d8f; }
.olcum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.olcum-kutu { background: #fff4e0; border: 1px solid #f3c77a; border-radius: 12px; padding: 6px 10px; display: flex; flex-direction: column; min-width: 0; }
.olcum-kutu span { font-size: .78em; color: var(--soluk); font-weight: 600; }
.olcum-kutu b { font-size: 1.6em; line-height: 1.15; color: #b54708; }
.olcum-kutu small { font-size: .82em; font-weight: 600; }
.karsilastir { background: #eef3ff; border-radius: 10px; padding: 6px 10px; font-size: .9em; margin: 4px 0 0; }
table.yer-tablo th small, table.yer-tablo td small { display: block; font-weight: 400; font-size: .8em; color: var(--soluk); }
table.yer-tablo tbody tr { cursor: pointer; }
table.yer-tablo tbody th { text-align: left; }
table.yer-tablo tr.secili-satir th, table.yer-tablo tr.secili-satir td { background: #efeafc; font-weight: 700; }
table.yer-tablo tr:focus-visible { outline: 3px solid var(--vurgu); outline-offset: -3px; }
@media (max-width: 420px) { table.yer-tablo { font-size: .85em; } table.yer-tablo th, table.yer-tablo td { padding: 4px 3px; } .olcum-kutu b { font-size: 1.35em; } }
