/* Dıtdıt Oyunu · oyun.css
   Zemin: koyu noktalı dijital tuval (#1F1F1F, 50 px ızgarada #5A5A5A noktalar). Kâğıt ve karton parçalar
   (tahta, kartlar, program şeridi, tabelalar, balonlar, paneller) tuvalin üstünde kendi renkleriyle durur.
   Zemine doğrudan yazılan her şey krem (#F6F0DE) ya da sarı vurgu. Önce telefon.
   Renk bağlamı değişkenle: --yazi / --ikincil / --vurgu / --odak / --cizgi tuvalde açık, kâğıtta koyu.
   Renkler yalnızca Dıtdıt paleti (+ ışık kartındaki yeşil, basılı setteki gibi). */
:root {
  --laci: #202C3B;
  --krem: #F6F0DE;
  --kagit: #FFFBEF;
  --karton: #C9965F;
  --sari: #FFCC00;
  --kirmizi: #EE5A3C;
  --yesil: #3E9E5C;
  --kursun: #5f5747;
  --soluk: #6f6552;
  --beyaz: #FFFDF5;
  --sonuk: #3B4A5E;
  --el: "Patrick Hand", Noteworthy, "Bradley Hand", "Chalkboard SE", "Comic Sans MS", cursive;
  --duz: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tuval: #1F1F1F;
  --nokta: #5A5A5A;
  --acik-soluk: #DCD4C0;  /* tuvalde ikincil yazı: zeminde 11:1, tam noktanın üstünde bile 4,7:1 */
  /* tuval bağlamı (kâğıt parçalar aşağıda kendi bağlamını kurar) */
  --yazi: var(--krem);
  --ikincil: var(--acik-soluk);
  --vurgu: var(--sari);
  --odak: var(--sari);
  --cizgi: var(--sari);
  --sure: 420ms;          /* bir adımın animasyonu (JS hızla değiştirir) */
  --hucre: 20%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden;
  color: var(--yazi); font-family: var(--duz); font-size: 17px; line-height: 1.5;
  background-color: #1F1F1F;
  background-image: radial-gradient(#5A5A5A 1.6px, transparent 1.6px);
  background-size: 50px 50px;
}
/* kâğıt bağlamı: kâğıt / karton parçaların içi koyu mürekkep */
.balon, .kart-dugme, .pkart, .program-alan, .ipucu, .anlat, .kart-menu, .sonuc-kagit, .secenek, .paylas,
.atolye-giris, .isik-uyari, .bant-not, .dit-panel, .tahta, .atolye-sonuc:not(:empty), .tabela,
.kod-ac input, .baglanti, .hiz-dugme[aria-pressed="true"] {
  --yazi: var(--laci); --ikincil: var(--soluk); --vurgu: var(--kirmizi); --odak: var(--kirmizi); --cizgi: var(--kirmizi);
  color: var(--yazi);
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--cizgi); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px dashed var(--odak); outline-offset: 3px;
}
button { font: inherit; color: inherit; }
.gizli { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.atla { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--sari); color: var(--laci); padding: 8px 14px; font-family: var(--el); font-size: 20px; }
.atla:focus { top: 10px; }
main:focus { outline: none; }
.noscript { max-width: 40em; margin: 20px auto; padding: 0 16px; font-size: 19px; }

/* ── üst ── */
.ust {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  max-width: 1200px; margin: 0 auto; padding: 10px 16px 0;
}
/* harita uzun ve oyuncu en altta başlıyor: ses ve sınıf modu düğmeleri her yerden erişilebilsin */
.ust {
  position: sticky; top: 0; z-index: 10; padding-bottom: 4px;
  background: var(--tuval); box-shadow: 0 0 0 100vmax var(--tuval); clip-path: inset(0 -100vmax);
}
.logo { font-family: var(--el); font-size: 26px; color: var(--yazi); text-decoration: none; line-height: 1.1; }
.logo span { font-size: 21px; color: var(--ikincil); }
.ust-dugmeler { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.ince-dugme {
  font-family: var(--el); font-size: 19px; color: var(--yazi); cursor: pointer; line-height: 1.2;
  background: none; border: 0; border-bottom: 2px dashed var(--cizgi); padding: 10px 2px 4px; min-height: 44px;
}
.ince-dugme[aria-pressed="false"] { color: var(--ikincil); border-bottom-color: var(--ikincil); }
#sinif-dugme[aria-pressed="true"] { background: var(--sari); color: var(--laci); border-bottom-color: var(--laci); padding: 10px 10px 4px; --odak: var(--krem); }

.ekran { max-width: 1200px; margin: 0 auto; padding: 10px 16px 60px; }

/* ── ortak kâğıt parçaları ── */
.el-baslik { font-family: var(--el); font-weight: 400; font-size: clamp(40px, 11vw, 64px); line-height: 1; margin: 0 0 8px; }
.el-baslik.kucuk { font-size: clamp(30px, 8vw, 40px); }
.kunye { font-family: var(--el); font-size: 18px; color: var(--vurgu); margin: 0; transform: rotate(-2deg); transform-origin: left; }
.kucuk-not { font-family: var(--el); font-size: 18px; color: var(--ikincil); line-height: 1.35; }
.son-not { font-family: var(--el); font-size: 17px; color: var(--ikincil); }
.bant-not {
  display: inline-block; font-family: var(--el); font-size: 19px; line-height: 1.3;
  padding: 10px 16px; margin: 8px 0 14px; transform: rotate(-.8deg);
  background: #DDBF94;     /* opak bant: koyu tuvalde de kâğıt gibi */
  clip-path: polygon(0 8%, 3% 0, 30% 5%, 62% 0, 97% 4%, 100% 0, 98.5% 50%, 100% 100%, 96% 94%, 55% 100%, 20% 95%, 2% 100%, 0 92%, 1.5% 50%);
}
.bant-not b { font-weight: 400; color: var(--kirmizi); }

/* el yazısı balon (Dıtdıt'ın sözleri) */
.balon {
  position: relative; display: inline-block; margin: 0;
  font-family: var(--el); font-size: 22px; line-height: 1.2; color: var(--laci);
  background: var(--beyaz); border: 2.5px solid var(--laci);
  border-radius: 18px 22px 16px 20px / 20px 16px 22px 18px;
  padding: 10px 16px 10px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, .42);
}
.balon::before {     /* kuyruk: sola, Dıtdıt'a doğru */
  content: ""; position: absolute; left: -13px; top: 18px; width: 14px; height: 16px;
  background: var(--beyaz); border-left: 2.5px solid var(--laci); border-bottom: 2.5px solid var(--laci);
  transform: skewY(-28deg) rotate(8deg); border-bottom-left-radius: 4px;
}

/* sarı kâğıt düğme (sitedeki gibi) */
.kagit-dugme, .buyuk-dugme {
  position: relative; display: inline-block; z-index: 0; cursor: pointer;
  font-family: var(--el); font-size: 26px; line-height: 1.1; color: var(--laci); text-decoration: none;
  padding: 12px 24px 11px 20px; min-height: 52px; border: 0; background: none; transform: rotate(-1.2deg);
}
.kagit-dugme::before, .buyuk-dugme::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sari);
  clip-path: polygon(1% 10%, 40% 2%, 99% 0, 97% 52%, 100% 96%, 50% 100%, 3% 94%, 0 50%);
}
.kagit-dugme::after {
  content: ""; position: absolute; left: -10px; top: -8px; width: 44px; height: 16px;
  background: rgba(201, 150, 95, .7); transform: rotate(-24deg);
}
.kagit-dugme:hover, .buyuk-dugme:hover { transform: rotate(0deg) translateY(-2px); }
.buyuk-dugme[disabled] { cursor: default; opacity: .55; transform: none; }

/* beyaz kart düğme (kâğıt kart) */
.kart-dugme {
  font-family: var(--el); font-size: 20px; line-height: 1.1; color: var(--laci); cursor: pointer;
  background: var(--beyaz); border: 2.5px solid var(--laci); border-radius: 4px 3px 5px 3px;
  padding: 10px 14px 8px; min-height: 48px; min-width: 48px; box-shadow: 2px 3px 0 rgba(0, 0, 0, .42);
}
.kart-dugme:hover { transform: translateY(-2px); }
.kart-dugme:active { transform: translateY(1px); }
.kart-dugme[disabled] { cursor: default; transform: none; background: #CFC8B8; color: #4a4a4a; box-shadow: none; }
.kart-dugme[aria-pressed="true"] { background: var(--sari); }
.sira-dugmeler { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 10px 0; }

/* ═══ 1) BÖLÜM SEÇİMİ ═══ */
.giris { display: flex; gap: 14px; align-items: center; margin: 8px 0 6px; }
/* Dıtdıt koyu tuvalde: kâğıttan kesilmiş çıkartma gibi krem kenar (çizgileri kaybolmasın; kimlik aynı) */
.giris-dit, .harita-dit svg {
  filter: drop-shadow(2px 0 0 var(--krem)) drop-shadow(-2px 0 0 var(--krem)) drop-shadow(0 2px 0 var(--krem))
          drop-shadow(0 -2px 0 var(--krem)) drop-shadow(0 6px 4px rgba(0, 0, 0, .55));
}
.giris-dit { width: 108px; height: auto; flex: none; }
.giris-balon { font-size: 22px; }
.giris-not { max-width: 38em; margin: 6px 0 18px; }

/* ═══ YOL HARİTASI ═══ */
.harita-kutu { margin: 6px 0 30px; }
.harita-ust { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 14px; }
.harita-ust .kunye { font-size: 22px; }
.harita-ipucu { font-family: var(--el); font-size: 18px; line-height: 1.3; color: var(--ikincil); }
.harita { position: relative; max-width: 1000px; margin: 0 auto; min-height: 420px; overflow: hidden; overflow: clip; }
.harita-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.hyol { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hyol-gelecek { stroke: var(--krem); stroke-width: 3; stroke-dasharray: 3 12; opacity: .55; }
.hyol-gecmis { stroke: var(--sari); stroke-width: 5.5; stroke-dasharray: 12 9; }   /* yürünen kısım: sarı, kalın */
.yol-maske { fill: none; stroke: #fff; stroke-width: 24; stroke-linecap: butt; }
.sus { fill: none; stroke: var(--krem); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.sus text { fill: var(--sari); stroke: none; font-family: var(--el); font-size: 20px; }

/* tabela: kâğıt levha + karton direk */
.bolge { margin: 0; }
.tabela {
  --egim: -1.4deg;
  position: absolute; z-index: 2; padding: 13px 14px 10px;
  background: var(--kagit); border: 2.5px solid var(--laci); border-radius: 5px 3px 6px 4px;
  box-shadow: 3px 5px 0 rgba(0, 0, 0, .45); transform: rotate(var(--egim));
}
.tabela.sag { --egim: 1.2deg; }
.tabela::before {
  content: ""; position: absolute; left: 50%; top: -11px; width: 82px; height: 20px; margin-left: -41px;
  background: rgba(201, 150, 95, .88); transform: rotate(-3deg);
}
.tabela::after {
  content: ""; position: absolute; top: 100%; left: 28px; width: 12px; height: 30px; margin-top: 1px;
  background: var(--karton); border: 2.5px solid var(--laci); border-top: 0; border-radius: 0 0 3px 3px;
}
.tabela.sag::after { left: auto; right: 28px; }
.tabela-no { font-family: var(--el); font-size: 18px; color: var(--kirmizi); }
.tabela h3 { font-family: var(--el); font-weight: 400; font-size: 32px; line-height: 1; margin: 0 0 4px; }
.tabela-fikir { margin: 0 0 6px; font-size: 15.5px; line-height: 1.35; }
.tabela-yildiz { margin: 0; display: flex; align-items: center; gap: 5px; font-family: var(--el); font-size: 17px; color: var(--soluk); }
.tabela-yildiz svg { width: 18px; height: 18px; flex: none; }
.tabela.salla { animation: tabela-salla .75s ease-out; }
.tabela.gecerken { outline: 3px dashed var(--sari); outline-offset: 6px; }
@keyframes tabela-salla {
  0%, 100% { transform: rotate(var(--egim)); } 25% { transform: rotate(4deg) translateY(-3px); }
  50% { transform: rotate(-4deg); } 75% { transform: rotate(2deg); }
}

/* duraklar: sitenin "Kaydırdıkça yolculuk" durak taşı (titrek daire, krem / sarı) */
.duraklar { list-style: none; margin: 0; padding: 0; }
.durak {
  position: absolute; z-index: 3; width: 58px; height: 58px; margin: -29px 0 0 -29px; padding: 0;
  background: none; border: 0; cursor: pointer; --odak: var(--sari);
}
.durak:focus-visible { outline: none; }
.durak:focus-visible .durak-tas { outline: 3px dashed var(--sari); outline-offset: 6px; }
.durak-tas {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--el); font-size: 27px; line-height: 1; color: var(--laci);
  background: var(--krem); border: 3px solid var(--laci);
  border-radius: 52% 48% 50% 46% / 48% 54% 46% 52%;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .5);
  transition: transform .15s;
}
.durak:hover .durak-tas { transform: translateY(-2px) rotate(-4deg); }
.durak.bitti .durak-tas { background: var(--sari); }
.durak.sirada .durak-tas { background: var(--beyaz); box-shadow: 0 5px 0 rgba(0, 0, 0, .5), 0 0 0 5px rgba(255, 204, 0, .5); }
.durak.sirada::before {       /* parlayan, titreşen halka */
  content: ""; position: absolute; inset: -12px; border: 3px dashed var(--sari); border-radius: 50%;
  pointer-events: none; animation: nabiz 1.6s ease-in-out infinite;
}
@keyframes nabiz { 0%, 100% { transform: scale(.94) rotate(0deg); opacity: 1; } 50% { transform: scale(1.12) rotate(24deg); opacity: .5; } }
.durak.kilitli .durak-tas { background: #34322E; color: #BDB5A2; border: 3px dashed #8C8577; box-shadow: none; }
.durak .kilit {
  display: none; position: absolute; right: -7px; top: -9px; width: 21px; height: 23px;
  fill: #34322E; stroke: var(--krem); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(12deg);
}
.durak.kilitli .kilit { display: block; }
.durak.salla .durak-tas { animation: sars .5s ease-out; }
.durak.acildi .durak-tas, .bitis.acildi .bitis-tas { animation: pat .65s cubic-bezier(.3, 1.6, .5, 1); }
.durak.acildi::after, .bitis.acildi::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; animation: halka .85s ease-out forwards;
}
@keyframes pat { 0% { transform: scale(.5) rotate(-12deg); } 60% { transform: scale(1.2) rotate(4deg); } 100% { transform: none; } }
@keyframes halka { from { box-shadow: 0 0 0 0 rgba(255, 204, 0, .95); } to { box-shadow: 0 0 0 30px rgba(255, 204, 0, 0); } }

.durak-yazi, .bitis-yazi {
  position: absolute; top: 50%; transform: translateY(-50%); width: max-content;
  font-family: var(--el); font-size: 18px; line-height: 1.12; color: var(--krem); text-align: left;
  text-shadow: 0 0 2px var(--tuval), 0 0 5px var(--tuval), 0 0 9px var(--tuval);
}
.yazi-sag > .durak-yazi, .yazi-sag > .bitis-yazi { left: calc(100% + 17px); }
.yazi-sol > .durak-yazi, .yazi-sol > .bitis-yazi { right: calc(100% + 17px); text-align: right; }
.durak-id { color: var(--sari); }
.durak-yildiz { display: flex; gap: 1px; margin-top: 3px; }
.yazi-sol .durak-yildiz { justify-content: flex-end; }
.durak-yildiz svg { width: 17px; height: 17px; }
.durak.kilitli .durak-yazi, .durak.kilitli .durak-id { color: var(--ikincil); }
.durak.kilitli .durak-yildiz { display: none; }
.durak.sirada .durak-ad::after { content: " · sırada"; color: var(--sari); }

.bitis { position: absolute; z-index: 2; width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.bitis-tas {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: var(--kagit); border: 3px dashed var(--karton); border-radius: 50%; box-shadow: 0 5px 0 rgba(0, 0, 0, .5);
}
.bitis-tas img { width: 60%; height: auto; }
.bitis.vardi .bitis-tas { background: var(--sari); border: 3px solid var(--laci); }
.bitis-yazi { width: 120px; }

/* tepede "devamı yakında" bulutu: kesik çizgili karalama */
.bulut { position: absolute; z-index: 2; height: 110px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 18px 30px 10px; }
.bulut svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(246, 240, 222, .06); stroke: var(--krem); stroke-width: 2.5; stroke-dasharray: 6 7; opacity: .7; }
.bulut p { position: relative; margin: 0; font-family: var(--el); line-height: 1.15; }
.bulut-baslik { font-size: 19px; color: var(--sari); }
.bulut-not { font-size: 16px; color: var(--ikincil); }

/* haritadaki Dıtdıt v2 */
.harita-dit { position: absolute; left: 0; top: 0; z-index: 5; width: 60px; pointer-events: none; will-change: transform; }
.harita-dit-ic { transform-origin: 50% 96%; }
.harita-dit svg { display: block; width: 100%; height: auto; overflow: visible; }
.harita-balon {
  position: absolute; z-index: 6; width: max-content; font-size: 18px; line-height: 1.2; padding: 8px 12px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, .45); pointer-events: none;
}
.harita-balon::before { top: auto; bottom: 12px; }
.balon.kuyruk-alt::before {
  left: 50%; bottom: -13px; margin-left: -8px; border-left: 2.5px solid var(--laci); border-bottom: 2.5px solid var(--laci);
  transform: rotate(-45deg) skew(10deg, 10deg); border-bottom-left-radius: 4px; width: 14px; height: 14px;
}
.balon.kuyruk-sag::before {
  left: auto; right: -13px; border-left: 0; border-right: 2.5px solid var(--laci);
  transform: skewY(28deg) rotate(-8deg); border-bottom-left-radius: 0; border-bottom-right-radius: 4px;
}
@media (min-width: 720px) {
  .harita-dit { width: 72px; }
  .durak-yazi { font-size: 19px; }
}

.atolye-giris {
  position: relative; margin: 10px 0 28px; padding: 18px 16px 12px;
  background: repeating-linear-gradient(to bottom, var(--kagit) 0, var(--kagit) 31px, #e6dcc3 31px, #e6dcc3 32px);
  border: 2px dashed var(--karton); border-radius: 4px;
}
.atolye-giris p { max-width: 36em; }
.kod-ac { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.kod-ac label { font-family: var(--el); font-size: 20px; }
.kod-ac-satir { display: flex; gap: 8px; flex-wrap: wrap; }
.kod-ac input, .baglanti {
  font-family: var(--duz); font-size: 18px; letter-spacing: .04em; color: var(--laci);
  background: var(--beyaz); border: 2px solid var(--laci); border-radius: 3px; padding: 10px 10px; min-height: 48px;
  flex: 1 1 220px; min-width: 0;
}
.kod-ac-mesaj { font-family: var(--el); font-size: 18px; color: var(--kirmizi); min-height: 1.3em; }
.alt-not { margin-top: 18px; }
.klavye summary { font-family: var(--el); font-size: 19px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }

/* ═══ 2) OYUN ═══ */
.oyun-ust { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; margin: 2px 0 8px; }
.bolum-baslik { font-family: var(--el); font-weight: 400; font-size: 30px; line-height: 1.05; margin: 0; }
.bolum-baslik small { font-size: 20px; color: var(--vurgu); margin-right: 6px; }
.hedef { font-family: var(--el); font-size: 18px; color: var(--ikincil); display: inline-flex; gap: 4px; align-items: center; }
.hedef svg { width: 18px; height: 18px; }

.oyun-govde { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.oyun-sol, .oyun-sag { min-width: 0; }
/* telefonda kartlar tahtanın hemen altında olsun; ipucu kontrollerden sonra gelir */
.oyun-sag { display: flex; flex-direction: column; }
.oyun-sag .ipucu { order: 9; }
.ic-ekle { width: 52px; font-size: 14px; }

.dit-panel {        /* Dıtdıt ve balonu bir kâğıt parçasının üstünde */
  display: flex; align-items: center; gap: 16px; min-height: 104px; margin-bottom: 12px; padding: 8px 12px 8px 10px;
  background: var(--kagit); border: 2px solid #d9cfb6; border-radius: 6px; box-shadow: 3px 4px 0 rgba(0, 0, 0, .42);
}
.buyuk-dit { width: 86px; flex: none; }
.buyuk-dit-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dit-balon { flex: 1 1 auto; font-size: 21px; min-height: 2.6em; display: flex; align-items: center; }
/* LED: her kare hem sönük nokta hem yanan kare; JS 'yan' sınıfını değiştirir */
.led rect { visibility: hidden; }
.led.yan rect { visibility: visible; }
.led.yan circle { visibility: hidden; }
.kapali { visibility: hidden; }
.goz-kapali .bebek { visibility: hidden; }
.goz-kapali .kapali { visibility: visible; }
.bebek { transition: transform .3s; }
.dit-govde { transform-origin: 0 -10px; transform-box: view-box; }
.buyuk-dit.sars .dit-govde { animation: sars .55s ease-out; }
.buyuk-dit.sek .dit-govde { animation: sek .5s ease-out 2; }
@keyframes sars {
  0% { transform: none; } 15% { transform: translateX(7px) rotate(5deg); } 35% { transform: translateX(-6px) rotate(-5deg); }
  60% { transform: translateX(3px) rotate(2deg); } 100% { transform: none; }
}
@keyframes sek { 0%, 100% { transform: none; } 40% { transform: translateY(-14px) scaleY(1.04); } 70% { transform: translateY(0) scaleY(.94); } }

/* tahta */
.tahta-kutu { width: 100%; max-width: 440px; margin: 0 auto; }
.tahta-harfler { display: grid; grid-template-columns: repeat(5, 1fr); margin-left: 18px; font-family: var(--el); font-size: 16px; color: var(--ikincil); text-align: center; line-height: 1.2; }
.tahta-satir { display: flex; }
.tahta-rakamlar { width: 18px; flex: none; display: grid; grid-template-rows: repeat(5, 1fr); font-family: var(--el); font-size: 16px; color: var(--ikincil); align-items: center; }
.tahta {
  position: relative; flex: 1 1 auto; aspect-ratio: 1 / 1;
  background: var(--kagit) url("img/tahta.svg") center / 100% 100% no-repeat;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr));
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  box-shadow: 3px 5px 0 rgba(0, 0, 0, .42);
}
.hucre { position: relative; display: grid; place-items: center; margin: 0; padding: 0; border: 0; background: none; min-width: 0; min-height: 0; overflow: hidden; }
.hucre > img { max-width: 100%; max-height: 100%; }
.hucre img { display: block; pointer-events: none; }
.hucre .duvar { width: 92%; height: 92%; }
.hucre .pil { width: 74%; height: auto; }
.hucre .isik { height: 80%; width: 38%; object-fit: contain; }
.hucre .isik.arka { height: auto; width: 74%; }
.hucre.on-hucre::after {     /* Dıtdıt'ın baktığı kare: kesik çizgili gölge */
  content: ""; position: absolute; inset: 9%; border: 3px dashed rgba(238, 90, 60, .55); border-radius: 8px;
  background: rgba(238, 90, 60, .07); pointer-events: none;
}
.hucre.tos-yeri::after { content: ""; position: absolute; inset: 8%; border: 4px solid var(--kirmizi); border-radius: 6px; pointer-events: none; }
.hucre .cevir { animation: cevir .45s ease-out; }
@keyframes cevir { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.dit {
  position: absolute; left: 0; top: 0; width: 20%; height: 20%; z-index: 3; pointer-events: none;
  transition: transform var(--sure) ease-in-out;
}
.dit-don { width: 100%; height: 100%; transition: transform calc(var(--sure) * .8) ease-in-out; }
.dit-ic { position: relative; width: 100%; height: 100%; }
.dit-ic img { position: absolute; left: 7%; top: 9%; width: 86%; height: 86%; }
.yon-oku {        /* baktığı yön: kafasının önünde kırmızı ok */
  position: absolute; left: 50%; top: -9%; width: 34%; height: 24%; margin-left: -17%; overflow: visible;
}
.dit.tos .dit-ic { animation: tos-ileri calc(var(--sure) * 1.3) ease-out; }
.dit.yuruyor .dit-ic img { animation: yuru calc(var(--sure) / 2) ease-in-out 2 alternate; }
.dit.bekliyor .dit-ic img { animation: nefes 1s ease-in-out infinite alternate; }
@keyframes tos-ileri {
  0% { transform: none; } 30% { transform: translateY(-34%); } 45% { transform: translateY(-26%) rotate(6deg); }
  60% { transform: translateY(-6%) rotate(-6deg); } 80% { transform: translateY(2%) rotate(3deg); } 100% { transform: none; }
}
@keyframes yuru { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes nefes { from { transform: scale(1); } to { transform: scale(1.04); } }
.tos-yazi {
  position: absolute; z-index: 4; font-family: var(--el); font-size: 24px; color: var(--kirmizi);
  pointer-events: none; transform: translate(-50%, -50%) rotate(-8deg); white-space: nowrap;
  text-shadow: 0 0 3px var(--kagit), 0 0 3px var(--kagit);
}

/* ipucu (öğretici bölümler) */
.ipucu {
  position: relative; background: #FFF4D6; border: 2px solid #e8d7a8; padding: 12px 14px 8px; margin: 0 0 14px;
  transform: rotate(.4deg); box-shadow: 2px 3px 0 rgba(0, 0, 0, .42);
}
.ipucu::before { content: ""; position: absolute; right: 18px; top: -10px; width: 60px; height: 18px; background: rgba(201, 150, 95, .6); transform: rotate(4deg); }
.ipucu-baslik { font-family: var(--el); font-size: 19px; color: var(--kirmizi); margin: 0 0 4px; }
.ipucu ol { margin: 0; padding-left: 22px; }
.ipucu li { margin: 0 0 4px; }
.ipucu li.simdi { font-weight: 700; }
.donus-ipucu { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; }
.donus-ipucu svg { width: 120px; height: 120px; flex: none; }
.donus-ipucu p { margin: 0; font-family: var(--el); font-size: 19px; line-height: 1.25; }

/* program şeridi */
.program-alan {
  background: var(--kagit); border: 2px solid #d9cfb6; border-radius: 5px; padding: 8px 10px 10px; margin-bottom: 12px;
}
.program-ust { display: flex; justify-content: space-between; align-items: baseline; }
.program-ust h3 { font-family: var(--el); font-weight: 400; font-size: 22px; margin: 0; }
.sayac { font-family: var(--el); font-size: 18px; color: var(--kursun); }
.program, .program ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; }
.program { min-height: 82px; padding: 4px 0; }
.program:empty::before {
  content: "Kartlar buraya dizilir. Aşağıdaki kartlara dokun."; font-family: var(--el); font-size: 19px; color: var(--soluk);
  align-self: center; padding: 0 4px;
}
.pkart {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  width: 62px; min-height: 74px; padding: 4px 2px 3px; cursor: pointer;
  background: var(--beyaz); border: 2.5px solid var(--laci); border-radius: 4px 3px 5px 3px;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, .42);
}
.pkart img { width: 50px; height: 38px; object-fit: contain; }
.pkart .etiket { font-family: var(--el); font-size: 14px; line-height: 1; white-space: nowrap; letter-spacing: -.01em; }
.pkart.simdi { background: var(--sari); transform: translateY(-3px); }
.pkart.bozuk { border-color: var(--kirmizi); box-shadow: 0 0 0 3px rgba(238, 90, 60, .35); }
.pkart.bozuk::after {
  content: "tos!"; position: absolute; top: -12px; right: -8px; z-index: 2; font-family: var(--el); font-size: 16px; color: #fff;
  background: var(--kirmizi); padding: 0 5px; border-radius: 3px; transform: rotate(8deg);
}
.pkart.kirmizi-hata::after { content: "kırmızı!"; }
.pkart.degisti { border-style: dashed; }
.pkart.yeni { animation: kondu .25s ease-out; }
@keyframes kondu { from { transform: translateY(-10px) rotate(-4deg); opacity: .3; } to { transform: none; opacity: 1; } }

.ptekrar {
  position: relative; display: flex; align-items: stretch; gap: 4px; padding: 3px 4px 3px 3px;
  border: 2.5px solid var(--laci); border-radius: 6px; background: rgba(201, 150, 95, .18);
}
.ptekrar.acik { border-style: dashed; border-color: var(--kirmizi); background: rgba(255, 204, 0, .18); }
.ptekrar > .pkart { width: 58px; }
.ptekrar .sayi { font-family: var(--el); font-size: 20px; line-height: 1; }
.ptekrar .tur { position: absolute; top: -12px; left: -6px; font-family: var(--el); font-size: 15px; background: var(--laci); color: var(--sari); padding: 0 5px; border-radius: 3px; }
.ptekrar ol { align-items: center; }
.ic-ekle {
  width: 46px; min-height: 66px; cursor: pointer; font-family: var(--el); font-size: 15px; line-height: 1.05; color: var(--kursun);
  background: transparent; border: 2px dashed var(--soluk); border-radius: 4px;
}
.ptekrar.acik .ic-ekle { color: var(--kirmizi); border-color: var(--kirmizi); background: rgba(255, 255, 255, .5); }
.pkart.eger { width: 120px; }
.pkart.eger .eger-satir { display: flex; align-items: center; gap: 2px; font-family: var(--el); font-size: 13px; line-height: 1; }
.pkart.eger .eger-satir img { width: 26px; height: 22px; }
.pkart.eger .eger-ust { display: flex; align-items: center; gap: 3px; font-family: var(--el); font-size: 14px; }
.pkart.eger .eger-ust img { width: 34px; height: 24px; }
.nokta-kirmizi { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--kirmizi); border: 1.5px solid var(--laci); }
.imlec-notu { font-family: var(--el); font-size: 18px; margin: 6px 0 0; color: var(--kirmizi); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* palet: basılı kartların aynısı */
.palet { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.palet .pkart { width: 74px; min-height: 86px; }
.palet .pkart img { width: 60px; height: 46px; }
.palet .pkart .etiket { font-size: 16px; }
.palet .pkart:hover { transform: translateY(-3px) rotate(-1deg); }
.palet .pkart[disabled] { opacity: .62; cursor: default; transform: none; }

.kontroller { display: flex; flex-wrap: wrap; gap: 10px 10px; align-items: center; margin: 4px 0 10px; }
.calistir.durdur::before { background: #f3b6a6; }
/* Çalıştır program şeridinin hemen yanında (her ekranda) */
.program-satir { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.program-satir .program-alan { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.calistir { flex: none; white-space: nowrap; }
.calistir .oynat { margin-right: 7px; font-size: .8em; }
/* yalnızca telefonda görünenler */
.kisa, .ust-simgeler, .hiz-dongu, .cekmece-ust { display: none; }
.cekmece { display: contents; }
.cekmece-baslik { font-family: var(--el); font-size: 24px; margin: 0; }
.simge-dugme {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 2px 6px; cursor: pointer;
  font-family: var(--el); font-size: 16px; line-height: 1; color: var(--yazi);
  background: none; border: 2px dashed var(--ikincil); border-radius: 8px;
}
.simge-dugme svg { width: 24px; height: 24px; fill: var(--krem); stroke: var(--krem); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#oyun-ses[aria-pressed="false"] .dalga, #oyun-ses[aria-pressed="true"] .carpi { display: none; }
.ipucu-dugme.yeni { color: var(--laci); background: var(--sari); border: 2px solid var(--sari); --odak: var(--krem); }
.hiz { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-family: var(--el); font-size: 18px; color: var(--ikincil); }
.hiz-dugme {
  font-family: var(--el); font-size: 18px; min-height: 44px; min-width: 56px; cursor: pointer;
  background: transparent; border: 2px dashed transparent; border-radius: 3px; color: var(--ikincil);
}
.hiz-dugme:hover { border-color: var(--ikincil); }
.hiz-dugme[aria-pressed="true"] { border-color: var(--laci); background: var(--beyaz); color: var(--laci); }
.isik-uyari {
  font-family: var(--el); font-size: 19px; line-height: 1.3; padding: 10px 12px; margin: 4px 0;
  background: #fde6df; border: 2px dashed var(--kirmizi);
}

/* "Bunu nasıl anlatırım?" */
.anlat { margin-top: 18px; order: 10; padding: 16px 16px 10px; background: var(--kagit); border: 2px solid #d9cfb6; position: relative; }
.anlat::before { content: ""; position: absolute; left: 22px; top: -10px; width: 70px; height: 20px; background: rgba(201, 150, 95, .6); transform: rotate(-5deg); }
.anlat-izgara { display: grid; grid-template-columns: 1fr; gap: 12px 22px; }
.anlat h4 { font-family: var(--el); font-weight: 400; font-size: 21px; color: var(--kirmizi); margin: 0 0 2px; }
.anlat p { margin: 0 0 6px; }
.anlat .soru { font-family: var(--el); font-size: 22px; line-height: 1.25; }
.anlat details summary { font-family: var(--el); font-size: 19px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.mini-program { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-family: var(--el); font-size: 18px; }
.mini-program .m { border: 2px solid var(--laci); background: var(--beyaz); border-radius: 3px; padding: 2px 6px; }
.mini-program .mt { border: 2px dashed var(--laci); border-radius: 5px; padding: 2px 4px; display: inline-flex; gap: 4px; align-items: center; }

/* kart menüsü (alttan çıkan kâğıt) */
.perde { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .55); }
.kart-menu {
  position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow: auto;
  background: var(--kagit); border-top: 3px solid var(--laci); padding: 14px 16px 18px;
  box-shadow: 0 -6px 0 rgba(0, 0, 0, .42);
}
.menu-baslik { font-family: var(--el); font-size: 24px; margin: 0 0 8px; }
.menu-icerik { display: flex; flex-direction: column; gap: 12px; }
.menu-satir { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.menu-satir > .menu-etiket { font-family: var(--el); font-size: 19px; flex: 0 0 100%; }
@media (min-width: 560px) { .menu-satir > .menu-etiket { flex: 0 0 9em; } }
.menu-satir .pkart { width: 70px; }
.sayi-kutu { font-family: var(--el); font-size: 32px; min-width: 2.2em; text-align: center; }
.kart-menu .kapat { margin-top: 14px; }

/* sonuç */
.sonuc { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.sonuc-kagit {
  position: relative; width: min(460px, 100%); background: var(--kagit); border: 3px solid var(--laci); border-radius: 6px;
  padding: 22px 18px 14px; text-align: center; transform: rotate(-.8deg); box-shadow: 4px 6px 0 rgba(0, 0, 0, .42);
}
.sonuc-kagit::before { content: ""; position: absolute; left: 50%; top: -12px; width: 96px; height: 24px; margin-left: -48px; background: rgba(201, 150, 95, .7); transform: rotate(2deg); }
.yildizlar { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.yildizlar svg { width: 62px; height: 62px; }
.yildizlar .yeni-yildiz { animation: yildiz .5s ease-out both; }
.yildizlar .yeni-yildiz:nth-child(2) { animation-delay: .15s; } .yildizlar .yeni-yildiz:nth-child(3) { animation-delay: .3s; }
@keyframes yildiz { from { transform: scale(.2) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.sonuc-baslik { font-family: var(--el); font-size: 30px; line-height: 1.1; margin: 0 0 8px; }
.sonuc-metin { margin: 0 0 8px; }
.sonuc .sira-dugmeler { justify-content: center; }

/* ═══ 3) ATÖLYE ═══ */
.arac { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.arac .pkart { width: 66px; min-height: 76px; }
.arac .pkart[aria-pressed="true"] { background: var(--sari); transform: translateY(-3px); }
.arac .pkart img { width: 44px; height: 40px; }
.arac-not { font-family: var(--el); font-size: 18px; color: var(--ikincil); margin: 0 0 8px; }
.tahta.duzenle .hucre { cursor: pointer; }
.tahta.duzenle .hucre:hover { background: rgba(255, 204, 0, .15); }
.tahta.duzenle .hucre:focus-visible { outline: 3px dashed var(--kirmizi); outline-offset: -6px; }
.secenek { border: 2px solid #d9cfb6; background: var(--kagit); padding: 8px 12px 10px; margin: 0 0 12px; }
.secenek legend { float: left; width: 100%; font-family: var(--el); font-size: 20px; padding: 0; margin-bottom: 2px; }
.secenek legend + * { clear: both; }
.secenek label { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.secenek input { width: 24px; height: 24px; accent-color: var(--laci); }
.atolye-sonuc { font-family: var(--el); font-size: 21px; line-height: 1.3; min-height: 1.4em; margin: 6px 0 10px; }
.atolye-sonuc:not(:empty) { background: var(--kagit); border: 2px solid #d9cfb6; padding: 8px 12px; box-shadow: 3px 4px 0 rgba(0, 0, 0, .42); }
.atolye-sonuc.olur { color: #2f6b3f; }
.atolye-sonuc.olmaz { color: var(--kirmizi); }
.paylas { background: var(--kagit); border: 2px dashed var(--karton); padding: 10px 14px; }
.paylas-baslik { font-family: var(--el); font-size: 20px; margin: 0; }
.kod-kutu { font-family: var(--duz); font-weight: 700; font-size: 24px; letter-spacing: .08em; margin: 4px 0 8px; word-break: break-all; }
.baglanti { width: 100%; font-size: 14px; }
.kopya-mesaj { font-family: var(--el); font-size: 18px; color: #2f6b3f; }

/* ═══ geniş ekran ═══ */
@media (min-width: 1300px) {
  html.sinif .anlat-izgara { grid-template-columns: 1fr 1fr; }
  html.sinif .anlat-izgara > div:nth-child(2) { grid-row: span 2; }
}
@media (min-width: 900px) {
  .oyun-sag .ipucu { order: -1; }
  .oyun-govde { grid-template-columns: minmax(360px, 470px) minmax(0, 1fr); gap: 26px; }
  .tahta-kutu { max-width: 470px; }
  .buyuk-dit { width: 100px; }
  .kart-menu { left: 50%; right: auto; width: 560px; margin-left: -280px; bottom: 20px; border: 3px solid var(--laci); border-radius: 6px; }
}

/* ═══ sınıf / aile modu: tahtaya, TV'ye yansıtmak için ═══ */
@media (min-width: 701px) {
  html.sinif body { font-size: 20px; }
  html.sinif .ekran, html.sinif .ust { max-width: 1500px; }
  html.sinif .tahta-kutu { max-width: 640px; }
  html.sinif .tahta-harfler, html.sinif .tahta-rakamlar { font-size: 22px; }
  html.sinif .tahta-harfler { margin-left: 24px; }
  html.sinif .tahta-rakamlar { width: 24px; }
  html.sinif .dit-balon { font-size: 26px; }
  html.sinif .bolum-baslik { font-size: 38px; }
  html.sinif .pkart { width: 74px; min-height: 86px; }
  html.sinif .pkart .etiket { font-size: 16px; }
  html.sinif .pkart img { width: 60px; height: 46px; }
  html.sinif .palet .pkart { width: 88px; min-height: 100px; }
  html.sinif .palet .pkart img { width: 72px; height: 54px; }
  html.sinif .palet .pkart .etiket { font-size: 18px; }
  html.sinif .pkart.eger { width: 140px; }
  html.sinif .anlat .soru { font-size: 27px; }
}
@media (min-width: 900px) {
  html.sinif .oyun-govde { grid-template-columns: minmax(420px, 640px) minmax(0, 1fr); }
}

/* ═══ telefon: oynarken hiç kaydırma yok ═══
   100dvh içinde: ince başlık · küçük Dıtdıt + balon · kalan alana sığan en büyük kare tahta · sabit kontrol çubuğu.
   Uzun ipucu alttan kayan çekmecede; kart menüsü çubuğun hemen üstünde küçük pencere. */
@media (max-width: 700px) {
  html.oyunda, html.oyunda body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  html.oyunda .ust { display: none; }
  html.oyunda main { height: 100%; }
  html.oyunda #ekran-oyun {
    display: flex; flex-direction: column; gap: 4px; max-width: none; margin: 0;
    height: 100vh; height: 100dvh;
    padding: max(2px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }
  #ekran-oyun .uzun { display: none; }
  #ekran-oyun .kisa { display: inline; }

  /* 1) başlık satırı */
  #ekran-oyun .oyun-ust { flex: none; flex-wrap: nowrap; gap: 6px; margin: 0; min-height: 44px; }
  #ekran-oyun .geri { flex: none; font-size: 17px; padding: 8px 1px 2px; white-space: nowrap; }
  #ekran-oyun .bolum-baslik { flex: 1 1 auto; min-width: 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #ekran-oyun .bolum-baslik small { font-size: 16px; margin-right: 4px; }
  #ekran-oyun .hedef { flex: none; font-size: 16px; white-space: nowrap; }
  #ekran-oyun .ust-simgeler { display: flex; gap: 4px; flex: none; }

  /* 2–3) Dıtdıt + balon, tahta */
  #ekran-oyun .oyun-govde { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
  #ekran-oyun .oyun-sol { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
  #ekran-oyun .dit-panel { flex: none; min-height: 0; margin: 0; padding: 3px 6px 3px 4px; gap: 8px; }
  #ekran-oyun .buyuk-dit { width: 36px; }
  #ekran-oyun .dit-balon {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    flex: 1 1 auto; min-width: 0; font-size: 16px; line-height: 1.15; min-height: 0; height: calc(2.3em + 10px);
    padding: 3px 9px; border-width: 2px; box-shadow: none;
  }
  #ekran-oyun .dit-balon::before { display: none; }
  #ekran-oyun .tahta-kutu {
    flex: 1 1 auto; min-height: 0; width: 100%; max-width: none; margin: 0; container-type: size;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    --tb: min(100cqw - 24px, 100cqh - 26px);       /* genişlik ve yüksekliğe göre en büyük kare */
  }
  #ekran-oyun .tahta-harfler, #ekran-oyun .tahta-satir { flex: none; width: calc(var(--tb) + 18px); }
  #ekran-oyun .tahta { flex: none; width: var(--tb); height: var(--tb); box-shadow: 2px 3px 0 rgba(0, 0, 0, .42); }

  /* 4) sabit kontrol çubuğu */
  #ekran-oyun .cubuk { flex: none; display: flex; flex-direction: column; gap: 6px; }
  #ekran-oyun .program-satir { margin: 0; gap: 8px; }
  #ekran-oyun .program-alan { position: relative; padding: 0 5px; }
  #ekran-oyun .program-ust { position: absolute; right: 5px; top: -8px; z-index: 2; }
  #ekran-oyun .program-ust h3 { display: none; }
  #ekran-oyun .sayac { font-size: 14px; line-height: 1.2; padding: 0 5px; background: var(--kagit); border: 1.5px solid #d9cfb6; border-radius: 3px; }
  #ekran-oyun .program {
    flex-wrap: nowrap; align-items: center; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    height: 74px; min-height: 0; padding: 13px 2px 3px; scrollbar-width: none;
  }
  #ekran-oyun .program::-webkit-scrollbar { display: none; }
  #ekran-oyun .program ol { flex-wrap: nowrap; }
  #ekran-oyun .program li { flex: none; }
  #ekran-oyun .program:empty::before { content: "Kartlar buraya dizilir: aşağıdan dokun."; font-size: 16px; line-height: 1.15; }
  #ekran-oyun .program .pkart { width: 46px; min-height: 54px; padding: 3px 1px 2px; }
  #ekran-oyun .program .pkart img { width: 34px; height: 26px; }
  #ekran-oyun .program .pkart .etiket { font-size: 12px; }
  #ekran-oyun .ptekrar { gap: 3px; padding: 1px 3px 1px 2px; }
  #ekran-oyun .ptekrar > .pkart { width: 44px; }
  #ekran-oyun .ptekrar .sayi { font-size: 16px; }
  #ekran-oyun .ptekrar ol { gap: 3px; }
  #ekran-oyun .ic-ekle { width: 46px; min-height: 48px; font-size: 13px; }
  #ekran-oyun .program .pkart.eger { width: 68px; }
  #ekran-oyun .pkart.eger .eger-satir:last-child { display: none; }
  #ekran-oyun .pkart.eger .eger-ust { font-size: 12px; }
  #ekran-oyun .pkart.eger .eger-ust img { width: 24px; height: 17px; }
  #ekran-oyun .pkart.eger .eger-satir { font-size: 12px; }
  #ekran-oyun .pkart.eger .eger-satir img { width: 16px; height: 14px; }
  #ekran-oyun .imlec-notu { flex-wrap: nowrap; font-size: 15px; line-height: 1.1; margin: 0 0 3px; gap: 6px; }
  #ekran-oyun .imlec-notu .kart-dugme { flex: none; min-height: 44px; padding: 4px 8px; font-size: 16px; }

  #ekran-oyun .calistir {
    flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 74px; height: 74px; min-height: 0; padding: 0; transform: none; font-size: 15px; line-height: 1;
    background: var(--sari); border: 3px solid var(--laci); border-radius: 50%; box-shadow: 0 4px 0 rgba(0, 0, 0, .5);
  }
  #ekran-oyun .calistir::before { display: none; }
  #ekran-oyun .calistir.durdur { background: #f3b6a6; }
  #ekran-oyun .calistir .oynat { margin: 0 0 2px; font-size: 26px; }

  #ekran-oyun .palet { flex-wrap: nowrap; gap: 6px; margin: 0; }
  #ekran-oyun .palet .pkart { flex: 1 1 0; width: auto; min-width: 48px; min-height: 56px; padding: 3px 1px 2px; }
  #ekran-oyun .palet .pkart img { width: 40px; height: 30px; }
  #ekran-oyun .palet .pkart .etiket { font-size: 14px; }

  #ekran-oyun .kontroller { flex-wrap: nowrap; gap: 6px; margin: 0; }
  #ekran-oyun .kontroller .kart-dugme { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 5px 2px 3px; font-size: 16px; white-space: nowrap; }
  #ekran-oyun .hiz { display: none; }
  #ekran-oyun .kontroller .hiz-dongu { display: block; }
  #ekran-oyun .isik-uyari {
    position: fixed; z-index: 20; left: 10px; right: 10px; margin: 0; font-size: 17px; line-height: 1.2;
    bottom: calc(var(--cubuk-h, 210px) + 10px + env(safe-area-inset-bottom)); box-shadow: 3px 4px 0 rgba(0, 0, 0, .5);
  }

  /* ipucu çekmecesi */
  #ekran-oyun .cekmece {
    --yazi: var(--laci); --ikincil: var(--soluk); --vurgu: var(--kirmizi); --odak: var(--kirmizi); --cizgi: var(--kirmizi);
    display: block; position: fixed; z-index: 32; left: 0; right: 0; bottom: 0; max-height: 74vh; max-height: 74dvh; overflow: auto;
    color: var(--laci); background: var(--kagit); border-top: 3px solid var(--laci); border-radius: 12px 12px 0 0;
    padding: 8px 14px calc(14px + env(safe-area-inset-bottom));
    transform: translateY(105%); visibility: hidden; transition: transform .24s ease-out, visibility .24s;
  }
  html.cekmece-acik #ekran-oyun .cekmece { transform: none; visibility: visible; }
  #ekran-oyun .cekmece-ust { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
  #ekran-oyun .cekmece .ipucu { transform: none; margin: 0 0 10px; box-shadow: none; }
  #ekran-oyun .cekmece .ipucu-baslik { display: none; }
  #ekran-oyun .cekmece .ipucu::before, #ekran-oyun .cekmece .anlat::before { display: none; }
  #ekran-oyun .cekmece .anlat { margin: 0 0 10px; }

  /* kart menüsü: çubuğun üstünde küçük pencere */
  html.oyunda .kart-menu {
    left: 8px; right: 8px; bottom: calc(var(--cubuk-h, 210px) + 12px + env(safe-area-inset-bottom));
    max-height: calc(100vh - var(--cubuk-h, 210px) - 40px); max-height: calc(100dvh - var(--cubuk-h, 210px) - 40px);
    padding: 8px 10px 10px; border: 3px solid var(--laci); border-radius: 8px; box-shadow: 3px 5px 0 rgba(0, 0, 0, .5);
  }
  html.oyunda .menu-baslik { font-size: 20px; margin-bottom: 4px; }
  html.oyunda .menu-icerik { gap: 6px; }
  html.oyunda .menu-satir { gap: 6px; }
  html.oyunda .menu-satir > .menu-etiket { font-size: 17px; }
  html.oyunda .menu-satir .pkart { width: 60px; min-height: 58px; }
  html.oyunda .menu-satir .pkart img { width: 40px; height: 30px; }
  html.oyunda .kart-menu .kapat { margin-top: 8px; }
}

/* ═══ az hareket ═══ */
html.az-hareket .dit, html.az-hareket .dit-don, html.az-hareket .bebek { transition: none !important; }
html.az-hareket *, html.az-hareket *::before, html.az-hareket *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .dit, .dit-don, .bebek, .cekmece { transition: none !important; }
  *, *::before, *::after { animation: none !important; }
}
