/* Cez'in sayfası ve oyunları — "Ata ile Cez" kitabının defter dili.
   Bütün kurallar .cz altında; sitenin genel stiliyle çakışmaz. */

@font-face { font-family: "CzCaveat"; font-weight: 500; font-display: swap; src: url("fonts/caveat-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "CzCaveat"; font-weight: 500; font-display: swap; src: url("fonts/caveat-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "CzCaveat"; font-weight: 700; font-display: swap; src: url("fonts/caveat-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "CzCaveat"; font-weight: 700; font-display: swap; src: url("fonts/caveat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "CzAndika"; font-weight: 400; font-display: swap; src: url("fonts/andika-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "CzAndika"; font-weight: 400; font-display: swap; src: url("fonts/andika-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "CzAndika"; font-weight: 700; font-display: swap; src: url("fonts/andika-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "CzAndika"; font-weight: 700; font-display: swap; src: url("fonts/andika-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.cz {
  --kagit: #FBFAF6;
  --kagit-2: #F3EFE3;
  --murekkep: #24304E;
  --gri: #56627C;
  --teal: #27A3BC;
  --teal-acik: #CFEAF0;
  --sari: #F2D06B;
  --sari-acik: #FBEFC6;
  --porsuk: #4F93AC;
  --yesil: #6FA65A;
  --uzay: #1B2340;
  --uzay-2: #2B3560;
  --golge: rgba(36, 48, 78, .14);
  --el: "CzCaveat", "Caveat", "Comic Sans MS", cursive;
  --govde: "CzAndika", "Andika", system-ui, sans-serif;
  font-family: var(--govde);
  font-size: 19px;
  line-height: 1.55;
  color: var(--murekkep);
  background: var(--kagit) url("img/kagit.jpg") repeat;
  background-size: 450px 450px;
  -webkit-text-size-adjust: 100%;
}
.cz *, .cz *::before, .cz *::after { box-sizing: border-box; }
.cz img { max-width: 100%; height: auto; display: block; }
.cz p { margin: 0 0 .7em; }
.cz a { color: var(--murekkep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cz a:hover { color: #1D2946; text-decoration-color: var(--teal); }
.cz :focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.cz .cz-gizli { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cz-sar { width: min(1120px, 100% - 32px); margin-inline: auto; }
.cz-el { font-family: var(--el); font-weight: 700; line-height: 1.02; letter-spacing: .2px; }

/* düğmeler: elle çizilmiş gibi, düz gölgeli */
.cz .cz-dug {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font-family: var(--el); font-weight: 700; font-size: 27px; line-height: 1;
  padding: .42em .95em .5em; border-radius: 16px 14px 18px 13px;
  border: 2.5px solid var(--murekkep); color: var(--kagit); background: var(--murekkep);
  box-shadow: 3px 4px 0 var(--teal); text-decoration: none; min-height: 54px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cz .cz-dug:hover { transform: translate(-1px, -1px); box-shadow: 4px 5px 0 var(--teal); color: var(--kagit); }
.cz .cz-dug:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--teal); }
.cz .cz-dug.ikinci { background: var(--kagit); color: var(--murekkep); box-shadow: 3px 4px 0 var(--golge); }
.cz .cz-dug.ikinci:hover { color: var(--murekkep); }
.cz .cz-dug[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.cz .cz-dug.kucuk { font-size: 22px; min-height: 44px; padding: .35em .75em .42em; }

/* üst bant: geri bağlantısı + başlık */
.cz-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 6px; flex-wrap: wrap; }
.cz-geri { font-family: var(--el); font-weight: 700; font-size: 24px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.cz-geri svg { width: 22px; height: 22px; }

/* ================= HUB ================= */
.cz-hub { padding-bottom: 48px; }
.cz-kahraman { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; padding: 34px 0 18px; }
.cz-kahraman h1 { font-size: clamp(54px, 8vw, 96px); margin: 0 0 14px; transform: rotate(-1.5deg); transform-origin: left; }
.cz-kahraman h1 span { display: inline-block; background: linear-gradient(transparent 62%, rgba(242, 208, 107, .75) 62%, rgba(242, 208, 107, .75) 92%, transparent 92%); padding: 0 .08em; }
.cz-kahraman .cz-giris { font-size: 21px; max-width: 34em; }
.cz-kahraman .cz-giris strong { font-weight: 700; }
.cz-cezkutu { position: relative; justify-self: center; width: min(330px, 80%); }
.cz-cezkutu img { width: 100%; filter: drop-shadow(0 10px 0 rgba(36,48,78,.06)); }
.cz-balon {
  position: absolute; z-index: 2; left: -47%; top: -6%; max-width: 250px; margin: 0 !important; background: var(--kagit); border: 2.5px solid var(--murekkep);
  border-radius: 22px 20px 24px 18px; padding: 10px 16px 12px; font-family: var(--el); font-weight: 700; font-size: 25px; line-height: 1.1;
  transform: rotate(-3deg); box-shadow: 3px 4px 0 var(--golge);
}
.cz-balon::after { content: ""; position: absolute; right: 26px; bottom: -16px; width: 22px; height: 22px; background: var(--kagit); border-right: 2.5px solid var(--murekkep); border-bottom: 2.5px solid var(--murekkep); transform: rotate(35deg) skew(8deg); }

.cz-oyunlar { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 26px; }
.cz-kart {
  position: relative; background: var(--kagit); border: 2.5px solid var(--murekkep); border-radius: 10px 14px 9px 16px;
  padding: 14px 14px 22px; box-shadow: 5px 7px 0 var(--golge); display: flex; flex-direction: column; gap: 12px;
}
.cz-kart:nth-child(1) { transform: rotate(-.8deg); }
.cz-kart:nth-child(2) { transform: rotate(.9deg); }
.cz-kart::before { /* bant */
  content: ""; position: absolute; top: -16px; left: 50%; width: 120px; height: 30px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(242, 208, 107, .78); border-left: 2px dashed rgba(36,48,78,.18); border-right: 2px dashed rgba(36,48,78,.18);
}
.cz-kart:nth-child(2)::before { background: rgba(39, 163, 188, .45); transform: translateX(-50%) rotate(4deg); }
.cz-kart-resim { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; border: 2px solid var(--murekkep); }
.cz-kart-resim.porsuk { background: #CFE6EE url("img/porsuk-arka-1200.webp") center 70% / cover; }
.cz-kart-resim.uzay { background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.9) 0 1.5px, transparent 2px) 0 0 / 70px 60px, radial-gradient(circle at 60% 70%, rgba(255,255,255,.7) 0 1px, transparent 1.6px) 0 0 / 46px 52px, linear-gradient(160deg, var(--uzay-2), var(--uzay)); }
.cz-kart-resim img { position: absolute; }
.cz-kart h2 { font-size: 44px; margin: 4px 4px 0; }
.cz-kart p { margin: 0 4px; }
.cz-kart .cz-ogrenir { font-family: var(--el); font-weight: 700; font-size: 24px; color: var(--gri); line-height: 1.15; }
.cz .cz-kart .cz-dug { align-self: flex-start; margin: 4px 4px 0; }
.cz .cz-rozetim { position: absolute; right: 10px; bottom: 12px; width: 82px; transform: rotate(8deg); display: none; }
.cz .cz-rozetim.var { display: block; }

.cz-sohbet { margin-top: 56px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: start; }
.cz-defter {
  background: var(--kagit) linear-gradient(rgba(110,143,181,.25) 1px, transparent 1px) 0 14px / 100% 34px;
  border: 2.5px solid var(--murekkep); border-radius: 8px; padding: 22px 24px 18px 58px; position: relative; box-shadow: 5px 7px 0 var(--golge);
}
.cz-defter::before { content: ""; position: absolute; left: 38px; top: 0; bottom: 0; width: 2px; background: rgba(238, 74, 79, .4); }
.cz-defter h2 { font-size: 46px; margin: 0 0 6px; }
.cz-defter ul { margin: 0; padding: 0; list-style: none; }
.cz-defter li { font-size: 18.5px; line-height: 34px; padding-left: 1.6em; text-indent: -1.6em; }
.cz-defter li::before { content: "✓"; display: inline-block; width: 1.6em; text-indent: 0; font-family: var(--el); font-weight: 700; font-size: 24px; color: var(--teal); }
.cz-yakinda { display: inline-block; font-family: var(--el); font-weight: 700; font-size: 26px; background: var(--sari); padding: 2px 14px 4px; border-radius: 12px 8px 14px 9px; transform: rotate(-4deg); border: 2px solid var(--murekkep); }
.cz-sohbet-yazi h2 { font-size: 52px; margin: 8px 0 10px; }
.cz-veli { margin-top: 16px; font-size: 16px; color: var(--gri); background: rgba(255,255,255,.55); border-left: 4px solid var(--teal); padding: 10px 14px; border-radius: 4px; }

.cz-kitap { margin-top: 56px; display: flex; gap: 22px; align-items: center; background: var(--teal-acik); border: 2.5px solid var(--murekkep); border-radius: 12px 16px 10px 14px; padding: 18px 22px; box-shadow: 5px 7px 0 var(--golge); }
.cz-kitap img { width: 108px; flex: none; transform: rotate(-4deg); }
.cz-kitap h2 { font-size: 40px; margin: 0 0 4px; }
.cz-kitap p { margin: 0 0 10px; }

@media (max-width: 860px) {
  .cz-kahraman { grid-template-columns: 1fr; padding-top: 20px; }
  .cz-cezkutu { width: 100%; margin-top: 22px; display: flex; align-items: flex-start; justify-content: center; gap: 18px; }
  .cz-cezkutu img { width: min(230px, 56%); }
  .cz-balon { position: relative; left: auto; right: auto; top: 14px; font-size: 22px; max-width: 170px; flex: 0 1 auto; }
  .cz-balon::after { right: -15px; bottom: 26px; transform: rotate(-50deg) skew(8deg); }
  .cz-oyunlar, .cz-sohbet { grid-template-columns: 1fr; }
  .cz-kart:nth-child(n) { transform: none; }
}
@media (max-width: 520px) {
  .cz { font-size: 18px; }
  .cz-kart h2 { font-size: 38px; }
  .cz-defter { padding-left: 48px; }
  .cz-defter::before { left: 30px; }
  .cz-kitap { flex-direction: column; align-items: flex-start; }
  .cz-balon { font-size: 20px; max-width: 150px; padding: 8px 12px 10px; }
}

/* ================= OYUN SAHNESİ (ortak) ================= */
.cz-oyun { padding-bottom: 40px; }
.cz-oyun h1 { font-size: clamp(40px, 6vw, 62px); margin: 4px 0 0; }
.cz-sahne {
  position: relative; margin-top: 12px; border: 2.5px solid var(--murekkep); border-radius: 12px; overflow: hidden;
  min-height: 560px; box-shadow: 6px 8px 0 var(--golge); background: var(--kagit-2);
}
.cz-ekran { position: relative; min-height: 560px; padding: 22px; display: flex; flex-direction: column; }
.cz-ilerleme { display: flex; gap: 6px; align-items: center; font-family: var(--el); font-weight: 700; font-size: 22px; color: var(--gri); }
.cz-ilerleme i { width: 14px; height: 14px; border: 2px solid var(--murekkep); border-radius: 50%; display: inline-block; }
.cz-ilerleme i.tam { background: var(--teal); }
.cz-konus { display: flex; gap: 14px; align-items: flex-end; }
.cz-konus .cz-yuz { width: 120px; flex: none; }
.cz-konus .cz-soz {
  position: relative; background: var(--kagit); border: 2.5px solid var(--murekkep); border-radius: 20px 18px 22px 16px; padding: 12px 18px 14px; margin-bottom: 40px;
  font-size: 20px; line-height: 1.4; box-shadow: 3px 4px 0 var(--golge); max-width: 34em;
}
.cz-konus .cz-soz::before { content: ""; position: absolute; left: -15px; bottom: 18px; width: 22px; height: 22px; background: var(--kagit); border-left: 2.5px solid var(--murekkep); border-bottom: 2.5px solid var(--murekkep); transform: rotate(40deg) skew(10deg); }
.cz-konus .cz-soz b { font-weight: 700; }
.cz-satir { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  .cz *, .cz *::before, .cz *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* yedek üst/alt bölüm: sitenin kendi header/footer'ı konunca kullanılmaz */
.cz-yedek-ust { background: #fff; border-bottom: 1px solid #e6e8ee; font-family: system-ui, sans-serif; }
.cz-yedek-ust .in { width: min(1120px, 100% - 32px); margin: auto; display: flex; justify-content: space-between; align-items: center; height: 64px; }
.cz-yedek-ust a { color: #111827; text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; }
.cz-yedek-ust nav a { margin-left: 18px; font-weight: 500; color: #374151; }
.cz-yedek-alt { background: #111827; color: #cbd5e1; font: 15px/1.5 system-ui, sans-serif; padding: 28px 0; }
.cz-yedek-alt .in { width: min(1120px, 100% - 32px); margin: auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cz-yedek-alt a { color: #e5e7eb; }
@media (max-width: 520px) {
  .cz-yedek-ust a { font-size: 14px; }
  .cz-yedek-ust nav a { margin-left: 12px; }
}

/* Oyun sayfalarında sitenin sabit üst menüsü oyunun üstüne binmesin; sayfa başında kalsın.
   Sağ alttaki Cezeri düğmesi de oyun sayfalarında gizlenir (oyun alanını kapatıyordu). */
body:has(.cz-oyun) .nav { position: absolute; }
body:has(.cz-oyun) .ada-pill { display: none; }
.cz .uz, .cz #sahne { scroll-margin-top: 10px; }
/* Dokunmatik ekranda klavye ipuçları gereksiz */
@media (hover: none) and (pointer: coarse) { .cz .ps-ipucu, .cz .uz-kucuk { display: none; } }
/* Davet formu (Cez'le sohbet) */
.cz-davet { margin-top: 18px; background: #fff; border: 2.5px solid var(--murekkep); border-radius: 18px 14px 20px 13px; padding: 16px 18px; box-shadow: 4px 6px 0 var(--sari); }
.cz-davet > label { display: block; font-weight: 700; margin-bottom: 6px; }
.cz-davet-satir { display: flex; gap: 10px; flex-wrap: wrap; }
.cz-davet-satir input { flex: 1 1 220px; min-width: 0; font: 600 18px/1.2 var(--govde); padding: 11px 12px; border: 2.5px solid var(--murekkep); border-radius: 12px; background: #fff; color: var(--murekkep); }
.cz-davet-kutu { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 16px; font-weight: 600; }
.cz-davet-kutu input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--murekkep); }
.cz-davet .cz-dug[disabled] { opacity: .45; cursor: not-allowed; }
.cz-davet-sonuc { margin: 12px 0 0; font-weight: 700; color: #A3261E; }
.cz-davet-sonuc.iyi { color: #1F6B4A; }
.cz-davet-alt { margin: 10px 0 0; font-size: 15px; color: var(--gri); }
@media (max-width: 560px) { .cz-sohbet-yazi h2 { font-size: clamp(36px, 10.5vw, 52px); } }
