:root {
  --lacivert: #15213f;
  --lacivert-2: #23365f;
  --zemin: #f3f6fb;
  --kart: #fff;
  --metin: #17223c;
  --soluk: #687389;
  --cizgi: #dce3ee;
  --turuncu: #f39a36;
  --yesil: #2f9e69;
  --mavi: #357fc5;
  --mor: #7657b9;
  --kirmizi: #d94242;
  --satir: #e8f2ff;
  --sutun: #fff1df;
  --bolge: #e7f7ef;
  --golge: 0 14px 36px rgba(23, 38, 72, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--metin);
  background:
    radial-gradient(circle at 12% 0, rgba(243, 154, 54, .11), transparent 27rem),
    var(--zemin);
  font-family: Arial, Helvetica, sans-serif;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.kapsayici {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.ust {
  color: #fff;
  background: linear-gradient(135deg, #111c37, #263b68);
}
.ust-menu {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.marka {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}
.marka-logo {
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 9px;
}
.marka-logo i { border: 1px solid rgba(255,255,255,.32); }
.puan-rozeti {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: 13px;
}
.puan-rozeti strong { margin-left: 5px; color: #ffd27d; font-size: 16px; }

.kahraman {
  max-width: 820px;
  margin: auto;
  padding: 52px 0 62px;
  text-align: center;
}
.rozet {
  display: inline-block;
  padding: 7px 12px;
  color: #ffd496;
  border: 1px solid rgba(255,212,150,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-size: 13px;
  font-weight: 700;
}
.kahraman h1 {
  margin: 18px auto 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
}
.kahraman p {
  max-width: 680px;
  margin: auto;
  color: #dbe3f3;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}
.ana-butonlar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 27px;
}
.buton {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.buton-ana { color: #17213d; background: var(--turuncu); box-shadow: 0 9px 22px rgba(243,154,54,.24); }
.buton-ikincil { color: #fff; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.09); }
.pwa-yukle { color: #fff; border: 1px solid rgba(142, 235, 188, .45); background: #278158; }
.pwa-yukle:hover { background: #1f704b; }
.pwa-yukle[hidden], .pwa-durum[hidden] { display: none; }
.devam-bilgi { min-height: 18px; margin-top: 11px; color: #ccd6e9; font-size: 13px; }
.pwa-durum {
  max-width: 620px;
  margin: 9px auto 0 !important;
  padding: 9px 12px;
  color: #f5f8ff !important;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.ana-icerik { padding: 40px 0 56px; }
.puan-bilgi {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) 1.5fr;
  gap: 18px 28px;
  margin-bottom: 34px;
  padding: 23px;
  border: 1px solid #f0c78f;
  border-radius: 18px;
  background: #fffaf3;
  box-shadow: 0 9px 25px rgba(86, 57, 20, .08);
}
.puan-bilgi-etiket {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 99px;
  color: #9a5811;
  background: #ffe8c5;
  font-size: 11px;
  font-weight: 800;
}
.puan-bilgi h2 { margin: 9px 0 6px; font-size: 23px; }
.puan-bilgi p { margin: 0; color: var(--soluk); line-height: 1.5; }
.puan-kalemleri {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.puan-kalemleri span {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid #dce7df;
  border-radius: 10px;
  color: #356249;
  background: #f3faf6;
  font-size: 12px;
}
.puan-kalemleri span.eksi { color: #8e3d4f; border-color: #f0dce1; background: #fff5f7; }
.puan-kalemleri b { font-size: 14px; white-space: nowrap; }
.puan-bilgi-notu {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid #eedcc5;
  font-size: 12px;
}
.bolum-baslik { margin-bottom: 22px; text-align: center; }
.bolum-baslik h2 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 34px); }
.bolum-baslik p { margin: 0; color: var(--soluk); line-height: 1.55; }
.seviye-listesi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.seviye-karti {
  --vurgu: var(--turuncu);
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--cizgi);
  border-top: 5px solid var(--vurgu);
  border-radius: 18px;
  background: var(--kart);
  box-shadow: var(--golge);
}
.seviye-karti.basit { --vurgu: var(--yesil); }
.seviye-karti.orta { --vurgu: var(--mavi); }
.seviye-karti.uzman { --vurgu: var(--mor); }
.seviye-baslik { display: flex; align-items: center; gap: 12px; }
.seviye-ikon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: var(--vurgu);
  background: #f0f3f8;
  font-size: 23px;
}
.seviye-karti h3 { margin: 0 0 4px; font-size: 21px; }
.seviye-karti p { margin: 0; color: var(--soluk); font-size: 14px; line-height: 1.45; }
.ilerleme-yazi {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 7px;
  color: var(--soluk);
  font-size: 12px;
  font-weight: 700;
}
.ilerleme { height: 7px; overflow: hidden; border-radius: 99px; background: #e9edf4; }
.ilerleme span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--vurgu); transition: width .3s; }
.seviye-devam {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 11px;
  border: 1px solid var(--cizgi);
  border-radius: 11px;
  background: #f7f9fc;
}
.seviye-devam span { color: var(--soluk); font-size: 12px; font-weight: 700; }
.seviye-devam-dugme {
  min-height: 36px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--vurgu);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.seviye-devam-dugme:hover { filter: brightness(.92); }
.oyun-numaralari { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin-top: 17px; }
.oyun-no {
  min-width: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--cizgi);
  border-radius: 8px;
  color: var(--metin);
  background: #f8fafd;
  font-weight: 800;
  cursor: pointer;
}
.oyun-no:hover:not(:disabled), .oyun-no.bitti { color: #fff; border-color: var(--vurgu); background: var(--vurgu); }
.oyun-no.siradaki { outline: 2px solid var(--vurgu); outline-offset: 1px; }
.oyun-no:disabled { color: #aab2c1; background: #f1f3f6; cursor: not-allowed; }
.kilit-bilgi { display: none; margin-top: 13px !important; padding: 10px; border-radius: 9px; background: #f1f3f7; }
.seviye-karti.kilitli .kilit-bilgi { display: block; }
.istatistikler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.istatistik { padding: 17px; border: 1px solid var(--cizgi); border-radius: 14px; background: #fff; text-align: center; }
.istatistik strong { display: block; margin-bottom: 4px; color: var(--lacivert); font-size: 24px; }
.istatistik span { color: var(--soluk); font-size: 13px; }
.alt { padding: 21px 16px; color: var(--soluk); border-top: 1px solid var(--cizgi); background: #fff; text-align: center; font-size: 13px; }
.alt p { margin: 0; }
.alt-linkler { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.alt-linkler a { color: var(--mavi); font-weight: 800; text-decoration: none; }
.alt-linkler a:hover, .alt-linkler a:focus-visible { text-decoration: underline; }

/* Oyun */
.oyun-govde { min-height: 100vh; }
.oyun-ust {
  position: sticky;
  top: 0;
  z-index: 30;
  color: #fff;
  background: var(--lacivert);
  box-shadow: 0 3px 12px rgba(10,20,40,.2);
}
.oyun-ust-ic {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.geri-link { justify-self: start; color: #fff; text-decoration: none; font-weight: 700; }
.oyun-kimlik { text-align: center; }
.oyun-kimlik strong, .oyun-kimlik span { display: block; }
.oyun-kimlik span { margin-top: 2px; color: #cdd7e9; font-size: 12px; }
.oyun-puan { justify-self: end; text-align: right; }
.oyun-puan span { display: block; color: #cdd7e9; font-size: 11px; }
.oyun-puan strong { color: #ffd27d; }

.oyun-istatistikleri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 14px auto;
}
.oyun-istatistikleri div {
  padding: 9px 12px;
  border: 1px solid var(--cizgi);
  border-radius: 11px;
  background: #fff;
  text-align: center;
}
.oyun-istatistikleri span { display: block; color: var(--soluk); font-size: 11px; }
.oyun-istatistikleri strong { font-size: 16px; }
.kayit-durumu {
  margin: -7px 0 10px;
  color: var(--soluk);
  font-size: 11px;
  text-align: center;
}
.kayit-durumu.hata { color: var(--kirmizi); font-weight: 700; }
.puan-ozeti {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}
.puan-ozeti div {
  padding: 8px 10px;
  border: 1px solid var(--cizgi);
  border-radius: 9px;
  background: #fff;
  text-align: center;
}
.puan-ozeti span { display: block; margin-bottom: 3px; color: var(--soluk); font-size: 10px; }
.puan-ozeti strong { color: var(--lacivert); font-size: 14px; }
.puan-ozeti div:first-child strong { color: var(--yesil); }
.puan-ozeti div:nth-child(2) strong,
.puan-ozeti div:nth-child(3) strong { color: #a45b6c; }
.oyun-puan-kurali {
  margin: -2px 0 12px;
  padding: 9px 12px;
  border: 1px solid var(--cizgi);
  border-radius: 10px;
  color: var(--soluk);
  background: #fff;
  font-size: 12px;
}
.oyun-puan-kurali summary { color: var(--mavi); font-weight: 800; cursor: pointer; }
.oyun-puan-kurali p { margin: 8px 0 1px; line-height: 1.5; }
.oyun-duzen {
  display: grid;
  grid-template-columns: minmax(300px, 590px) minmax(280px, 1fr);
  align-items: start;
  gap: 22px;
  padding-bottom: 35px;
}
.tahta-kolonu, .anlatim-kolonu { min-width: 0; }
.tahta-cerceve { position: relative; width: min(100%, 590px); margin: auto; }
.sudoku-tahta {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  overflow: hidden;
  border: 3px solid var(--lacivert);
  border-radius: 8px;
  background: var(--lacivert);
  gap: 1px;
}
.hucre {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--mavi);
  font-size: clamp(18px, 4.3vw, 31px);
  font-weight: 700;
  cursor: pointer;
}
.hucre:nth-child(3n):not(:nth-child(9n)) { box-shadow: inset -2px 0 var(--lacivert); }
.hucre:nth-child(n+19):nth-child(-n+27),
.hucre:nth-child(n+46):nth-child(-n+54) { box-shadow: inset 0 -2px var(--lacivert); }
.hucre:nth-child(n+19):nth-child(-n+27):nth-child(3n):not(:nth-child(9n)),
.hucre:nth-child(n+46):nth-child(-n+54):nth-child(3n):not(:nth-child(9n)) {
  box-shadow: inset -2px 0 var(--lacivert), inset 0 -2px var(--lacivert);
}
.hucre.sabit { color: #17213c; font-weight: 800; }
.hucre.ilgili-satir { background: var(--satir); }
.hucre.ilgili-sutun { background: var(--sutun); }
.hucre.ilgili-bolge { background: var(--bolge); }
.hucre.ayni-rakam { color: #fff; background: #6d91c4; }
.hucre.secili { z-index: 3; outline: 3px solid #f0a23f; outline-offset: -3px; background: #fff7df; }
.hucre.cakisan { z-index: 4; color: #fff; background: var(--kirmizi); animation: salla .28s 2; }
.hucre.denenen-hata { z-index: 5; color: #9e1744; outline: 3px solid #df4778; outline-offset: -3px; background: #ffd9e5; animation: salla .28s 2; }
.hucre.gelecek-kilit { z-index: 4; outline: 3px dashed #d67b17; outline-offset: -4px; background: #fff0d8; }
.hucre.ipucu-hucre { animation: parlat .8s 2; }
.notlar { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); }
.notlar i { display: grid; place-items: center; font-size: clamp(7px, 1.5vw, 11px); font-style: normal; font-weight: 600; }
.neden-buton {
  width: 100%;
  margin: 12px 0 2px;
  color: #8a4b08;
  border: 1px solid #e8a34e;
  background: #fff4df;
}
.neden-buton:hover { background: #ffe9c3; }
.neden-buton[hidden] { display: none; }
@keyframes salla { 50% { transform: translateX(3px); } }
@keyframes parlat { 50% { background: #fff0a6; } }

.duraklat-perde {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  place-items: center;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  background: rgba(21,33,63,.96);
  text-align: center;
}
.duraklat-perde.goster { display: grid; }
.duraklat-perde h2 { margin: 0 0 8px; }
.araclar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 10px 0; }
.arac {
  min-height: 43px;
  padding: 8px 5px;
  border: 1px solid var(--cizgi);
  border-radius: 9px;
  color: var(--metin);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.arac.aktif { color: #fff; border-color: var(--mavi); background: var(--mavi); }
.arac:disabled { opacity: .45; cursor: default; }
.rakam-baslik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 1px 7px;
}
.rakam-baslik strong { font-size: 13px; }
.rakam-baslik span { color: var(--soluk); font-size: 11px; }
.rakamlar { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.rakam {
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--lacivert-2);
  font-size: clamp(17px, 3vw, 25px);
  font-weight: 800;
  cursor: pointer;
}
.rakam:active { transform: translateY(1px); }
.rakam.tamam { opacity: .35; }

.panel {
  margin-bottom: 13px;
  padding: 19px;
  border: 1px solid var(--cizgi);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23,38,72,.08);
}
.panel-etiket {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 99px;
  color: var(--mavi);
  background: #eaf3fc;
  font-size: 11px;
  font-weight: 800;
}
.panel-etiket.hata { color: #a82f2f; background: #feeaea; }
.panel-etiket.dogru { color: #25764f; background: #e7f7ef; }
.panel h2, .panel h3 { margin: 10px 0 7px; }
.panel h2 { font-size: 21px; }
.panel h3 { font-size: 18px; }
.panel p { margin: 0; color: var(--soluk); line-height: 1.55; }
#aciklamaMetin { white-space: pre-line; }
.kontrol-listesi { display: grid; gap: 8px; white-space: normal; }
.kontrol-satiri { display: flex; align-items: flex-start; gap: 9px; }
.kontrol-renk {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 3px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.kontrol-renk.satir { border-color: #8bb6e5; background: var(--satir); }
.kontrol-renk.sutun { border-color: #e6ad66; background: var(--sutun); }
.kontrol-renk.bolge { border-color: #82c6a3; background: var(--bolge); }
.kontrol-sonuc {
  align-items: center;
  margin-top: 4px;
  padding: 11px 12px;
  border: 1px solid;
  border-radius: 10px;
  font-weight: 700;
}
.kontrol-sonuc.hata { color: #9e1744; border-color: #ef9ab7; background: #fff0f5; }
.kontrol-sonuc.dogru { color: #226d48; border-color: #8bc9a6; background: #e9f8f0; }
.sonuc-ikon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 23px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}
.kontrol-sonuc.hata .sonuc-ikon { background: #df4778; }
.kontrol-sonuc.dogru .sonuc-ikon { background: #45a572; }
.sema { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 15px; }
.sema span { padding: 9px 5px; border: 1px solid var(--cizgi); border-radius: 9px; color: var(--soluk); text-align: center; font-size: 11px; font-weight: 700; }
.sema b { display: block; margin-bottom: 3px; font-size: 19px; }
#semaSatir.aktif { border-color: #8bb6e5; background: var(--satir); }
#semaSutun.aktif { border-color: #e6ad66; background: var(--sutun); }
#semaBolge.aktif { border-color: #82c6a3; background: var(--bolge); }
.sema .hatali { color: #9e1744; border-width: 2px; }
.ipucu-buton { width: 100%; margin-top: 13px; color: #fff; background: var(--mavi); }
.ipucu-notu { margin-top: 8px !important; font-size: 11px; text-align: center; }

.tamam-perde {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(10,18,36,.72);
}
.tamam-perde.goster { display: grid; }
.tamam-karti { width: min(420px, 100%); padding: 28px; border-radius: 20px; background: #fff; box-shadow: var(--golge); text-align: center; }
.tamam-karti .yildizlar { color: #f0a23f; font-size: 34px; letter-spacing: 4px; }
.tamam-karti h2 { margin: 10px 0 7px; }
.tamam-karti p { color: var(--soluk); line-height: 1.5; }
.tamam-butonlari { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.tamam-butonlari a { padding: 12px; border-radius: 10px; background: #eef1f6; font-weight: 800; text-decoration: none; }
.tamam-butonlari .sonraki { color: #17213d; background: var(--turuncu); }

@media (max-width: 820px) {
  .oyun-duzen { grid-template-columns: 1fr; gap: 13px; }
  .anlatim-kolonu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .panel { margin: 0; }
}

@media (max-width: 650px) {
  .kapsayici { width: min(100% - 20px, 1120px); }
  .ust-menu { min-height: 60px; }
  .marka { font-size: 16px; }
  .marka-logo { width: 33px; height: 33px; }
  .puan-rozeti span { display: none; }
  .kahraman { padding: 34px 0 40px; }
  .kahraman h1 { font-size: 34px; }
  .ana-butonlar, .ana-butonlar .buton { width: 100%; }
  .ana-icerik { padding-top: 28px; }
  .puan-bilgi { grid-template-columns: 1fr; margin-bottom: 27px; padding: 18px; }
  .puan-kalemleri { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .puan-bilgi-notu { grid-column: auto; }
  .seviye-listesi { grid-template-columns: 1fr; }
  .oyun-numaralari { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .istatistikler { grid-template-columns: 1fr; }
  .istatistik { display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .istatistik strong { margin: 0; font-size: 20px; }

  .oyun-ust-ic { min-height: 56px; grid-template-columns: auto 1fr auto; gap: 8px; }
  .geri-link span { display: none; }
  .oyun-kimlik strong { font-size: 14px; }
  .oyun-kimlik span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .oyun-puan span { display: none; }
  .oyun-istatistikleri { margin: 8px auto; gap: 6px; }
  .oyun-istatistikleri div { padding: 6px 8px; }
  .oyun-duzen { padding-bottom: 18px; }
  .puan-ozeti { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tahta-cerceve { width: min(100%, calc(100vh - 245px)); min-width: 300px; }
  .araclar { margin: 7px 0; }
  .arac { min-height: 40px; font-size: 11px; }
  .rakamlar { gap: 4px; }
  .rakam { border-radius: 7px; }
  .anlatim-kolonu { display: block; }
  .panel { margin-bottom: 9px; padding: 15px; }
  .panel h2 { font-size: 18px; }
  .panel h3 { font-size: 16px; }
  .panel p { font-size: 14px; }
  .sema span { padding: 7px 3px; font-size: 10px; }
}

@media (max-width: 370px) {
  .kapsayici { width: min(100% - 12px, 1120px); }
  .seviye-devam { align-items: stretch; flex-direction: column; }
  .tahta-cerceve { min-width: 0; width: 100%; }
  .arac { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
