/* Oyunla Almanca. Görsel dil: docs/tasarim/GORSEL_DIL.md (değerler app/css/tema.css ile aynı). Sınıf öneki: oy- */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('yazitipi/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('yazitipi/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --zemin: #FFFFFF; --yuzey: #FFFFFF; --yuzey2: #F6F5F2; --yuzey3: #ECEAE4;
  --y1: #141414; --y2: #3F3F3F; --y3: #666666;
  --vurgu: #C8102E; --vurgu-koyu: #A30D26; --vurgu-zemin: #FCE8EB;
  --sari: #FFCE00; --sari-zemin: #FFF6CC; --amber: #7A5200;
  --yesil: #13733F; --yesil-dolgu: #2EA567; --yesil-zemin: #E3F4EA;
  --kirmizi: #B42318; --kirmizi-dolgu: #D92D20; --kirmizi-zemin: #FDECEA;
  --der: #1F57D6; --der-zemin: #E6EEFE; --die: #BF2A31; --die-zemin: #FDE9EA; --das: #0E7741; --das-zemin: #E2F5EA;
  --golge-1: 0 0 0 1px rgba(20,20,20,.07), 0 1px 2px rgba(20,20,20,.05);
  --golge-2: 0 0 0 1px rgba(20,20,20,.05), 0 6px 24px -8px rgba(20,20,20,.16), 0 2px 6px rgba(20,20,20,.04);
  --golge-3: 0 24px 60px -20px rgba(20,20,20,.30);
  --bayrak: linear-gradient(90deg, #141414 0 33.33%, #C8102E 33.33% 66.66%, #FFCE00 66.66%);
  --r-k: 10px; --r: 16px; --r-b: 22px; --r-xb: 28px;
  --egri: cubic-bezier(.22, 1, .36, 1); --yay: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--zemin); color: var(--y1); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; touch-action: manipulation; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--vurgu); outline-offset: 2px; }
#uygulama { max-width: 560px; margin: 0 auto; min-height: 100%; padding: max(14px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.gizli { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ortak düğmeler */
.oy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 22px; border-radius: var(--r-b);
  font-weight: 800; font-size: 17px; transition: transform .15s var(--egri), background .2s, box-shadow .2s; user-select: none; }
.oy-btn:active { transform: scale(.97); }
.oy-btn.ana { background: var(--vurgu); color: #fff; box-shadow: 0 6px 18px -8px rgba(200,16,46,.6); }
.oy-btn.ana:hover { background: var(--vurgu-koyu); }
.oy-btn.ikinci { background: var(--yuzey2); color: var(--y1); }
.oy-btn.tam { width: 100%; }
.oy-btn svg { width: 20px; height: 20px; flex: none; }
.oy-oyun > .oy-alt-alan { margin-top: auto; }
.oy-ikon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--y2); }
.oy-ikon-btn:hover { background: var(--yuzey2); }
.oy-ikon-btn svg { width: 22px; height: 22px; }

/* Maskot (Blender kare sayfası: 10 sütun, kare 180×300) */
.oy-maskot { flex: none; background-repeat: no-repeat; background-size: 1000% auto; image-rendering: auto; }

/* Ana ekran */
.oy-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.oy-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.oy-logo img { width: 38px; height: 38px; }
.oy-logo b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.oy-logo small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: #6B6B6B; }
.oy-bayrak { height: 3px; background: var(--bayrak); margin: 12px -18px 0; }
.oy-karsi { display: flex; align-items: flex-end; gap: 6px; margin-top: 18px; }
.oy-karsi .oy-maskot { width: 96px; height: 160px; margin-bottom: -6px; }
.oy-balon { position: relative; flex: 1; background: var(--yuzey2); border-radius: 22px 22px 22px 6px; padding: 14px 16px; margin-bottom: 36px; }
.oy-balon h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.oy-balon p { font-size: 14.5px; color: var(--y2); margin-top: 4px; }
.oy-baslik2 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--y3); margin: 22px 0 10px; }
.oy-kurlar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.oy-kurlar button { min-height: 48px; border-radius: 14px; background: var(--yuzey2); font-weight: 800; font-size: 16px; transition: background .2s, color .2s, transform .15s; }
.oy-kurlar button[aria-pressed="true"] { background: var(--y1); color: #fff; }
.oy-kurlar button:active { transform: scale(.95); }
.oy-oyunlar { display: grid; gap: 12px; }
.oy-kart { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; border-radius: var(--r-b); background: var(--yuzey); box-shadow: var(--golge-2);
  transition: transform .2s var(--egri), box-shadow .2s; overflow: hidden; }
.oy-kart:not([disabled]):hover { transform: translateY(-2px); box-shadow: var(--golge-3); }
.oy-kart:not([disabled]):active { transform: scale(.98); }
.oy-kart[disabled] { cursor: default; box-shadow: var(--golge-1); }
.oy-kart[disabled] .oy-kart-ik, .oy-kart[disabled] b { opacity: .55; }
.oy-kart-ik { width: 58px; height: 58px; flex: none; border-radius: 18px; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.oy-kart-ik.artikel { background: var(--yuzey2); gap: 2px; grid-template-rows: repeat(3, auto); font-size: 11px; line-height: 1.1; padding: 6px 0; }
.oy-kart-ik.artikel i { font-style: normal; }
.oy-kart b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.oy-kart span { display: block; font-size: 14px; color: var(--y2); margin-top: 2px; }
.oy-kart .oy-durum { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.oy-cip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--yuzey2); color: var(--y2); }
.oy-cip.sari { background: var(--sari-zemin); color: var(--amber); }
.oy-cip.yesil { background: var(--yesil-zemin); color: var(--yesil); }
.oy-kart .oy-ok { margin-left: auto; color: var(--y3); flex: none; }
.oy-yakinda { position: absolute; top: 12px; right: 12px; }
.oy-alt { margin-top: auto; padding-top: 26px; display: flex; justify-content: space-between; align-items: center; color: var(--y3); font-size: 13px; }

/* Oyun ekranı */
.oy-oyun { display: flex; flex-direction: column; flex: 1; gap: 14px; }
.oy-cubuk-satir { display: flex; align-items: center; gap: 10px; }
.oy-cubuk { flex: 1; height: 10px; border-radius: 99px; background: var(--yuzey3); overflow: hidden; }
.oy-cubuk i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--vurgu); transition: width .5s var(--egri); }
.oy-sayac { font-size: 14px; font-weight: 800; color: var(--y3); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.oy-seri { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: var(--sari); color: #141414; font-weight: 800; font-size: 13px;
  transform: scale(0); opacity: 0; transition: transform .3s var(--yay), opacity .2s; }
.oy-seri.var { transform: scale(1); opacity: 1; }
.oy-sahne { display: flex; align-items: flex-end; gap: 4px; min-height: 140px; }
.oy-sahne .oy-maskot { width: 84px; height: 140px; }
.oy-sahne .oy-balon { margin-bottom: 30px; padding: 10px 14px; font-weight: 700; font-size: 15.5px; transition: background .25s, color .25s; }
.oy-balon.dogru { background: var(--yesil-zemin); color: var(--yesil); }
.oy-balon.yanlis { background: var(--kirmizi-zemin); color: var(--kirmizi); }
.oy-soru { position: relative; border-radius: var(--r-xb); background: var(--yuzey); box-shadow: var(--golge-2); padding: 34px 20px 26px; text-align: center; overflow: hidden; min-height: 190px;
  display: flex; flex-direction: column; justify-content: center; }
.oy-soru::before { content: ''; position: absolute; inset: 0 0 auto; height: 8px; background: var(--oy-renk, var(--yuzey3)); transition: background .25s; }
.oy-yeni { position: absolute; top: 18px; left: 18px; }
.oy-kelime { font-size: clamp(30px, 9vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; overflow-wrap: anywhere; }
.oy-kelime .oy-art { color: var(--oy-renk); margin-right: .25em; display: inline-block; animation: oy-art-gir .45s var(--yay); }
.oy-anlam { margin-top: 10px; font-size: 17px; font-weight: 600; color: var(--y3); }
.oy-cogul { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--y2); }
@keyframes oy-art-gir { from { transform: translateY(-14px) scale(.6); opacity: 0; } }
.oy-secenek { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.oy-secenek button { min-height: 72px; border-radius: var(--r-b); font-size: 24px; font-weight: 800; letter-spacing: -.01em; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12);
  transition: transform .15s var(--egri), opacity .25s, box-shadow .2s; }
.oy-secenek button:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.oy-secenek .der { background: var(--der-zemin); color: var(--der); }
.oy-secenek .die { background: var(--die-zemin); color: var(--die); }
.oy-secenek .das { background: var(--das-zemin); color: var(--das); }
.oy-secenek button small { display: block; font-size: 11.5px; font-weight: 700; opacity: .7; letter-spacing: 0; margin-top: -2px; }
.oy-secenek.cevaplandi button { pointer-events: none; }
.oy-secenek.cevaplandi button:not(.secili):not(.dogru-sec) { opacity: .3; }
.oy-secenek button.dogru-sec { box-shadow: inset 0 0 0 3px currentColor; }
.oy-secenek button.secili.yanlis-sec { background: var(--kirmizi-zemin); color: var(--kirmizi); box-shadow: inset 0 0 0 3px var(--kirmizi); }

/* Geri bildirim paneli */
.oy-geri { border-radius: var(--r-b); padding: 16px; display: grid; gap: 10px; animation: oy-yuksel .38s var(--egri); }
.oy-geri.dogru { background: var(--yesil-zemin); }
.oy-geri.yanlis { background: var(--kirmizi-zemin); }
.oy-geri-bas { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.oy-geri.dogru .oy-geri-bas { color: var(--yesil); }
.oy-geri.yanlis .oy-geri-bas { color: var(--kirmizi); }
.oy-geri-bas svg { width: 26px; height: 26px; flex: none; }
.oy-kural { display: flex; gap: 10px; align-items: flex-start; background: var(--yuzey); border-radius: 14px; padding: 10px 12px; font-size: 14.5px; font-weight: 600; color: var(--y2); }
.oy-kural b { flex: none; background: var(--sari); color: #141414; border-radius: 8px; padding: 1px 8px; font-size: 12px; font-weight: 800; margin-top: 2px; }
.oy-ornek { background: var(--yuzey); border-radius: 14px; padding: 10px 12px; font-size: 15px; }
.oy-ornek q { quotes: none; display: block; font-weight: 700; color: var(--y1); }
.oy-ornek q mark { background: none; color: var(--oy-renk); font-weight: 800; }
.oy-ornek span { display: block; color: var(--y3); font-size: 14px; margin-top: 2px; }
.oy-not { font-size: 13.5px; font-weight: 600; color: var(--y2); }
@keyframes oy-yuksel { from { transform: translateY(16px); opacity: 0; } }

/* Hareketler: yalnız transform ve opacity */
.oy-zipla { animation: oy-zipla .5s var(--yay); }
@keyframes oy-zipla { 30% { transform: scale(1.06) translateY(-4px); } }
.oy-salla { animation: oy-salla .42s ease-in-out; }
@keyframes oy-salla { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.oy-konfeti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.oy-konfeti i { position: absolute; top: 0; left: 0; width: 9px; height: 14px; border-radius: 2px; will-change: transform, opacity; }

/* Sonuç ekranı */
.oy-sonuc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; flex: 1; }
.oy-sonuc .oy-maskot { width: 120px; height: 200px; margin-top: 6px; }
.oy-halka { position: relative; width: 168px; height: 168px; margin: 2px 0 6px; }
.oy-halka svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.oy-halka circle { fill: none; stroke-width: 12; }
.oy-halka .iz { stroke: var(--yuzey3); }
.oy-halka .dolu { stroke: var(--yesil-dolgu); stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--egri) .2s; }
.oy-halka div { position: absolute; inset: 0; display: grid; place-content: center; }
.oy-halka b { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.oy-halka small { font-size: 12px; font-weight: 700; color: var(--y3); margin-top: 4px; max-width: 112px; line-height: 1.25; text-align: center; }
.oy-sonuc h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.oy-sonuc > p { color: var(--y2); font-size: 15px; max-width: 400px; }
.oy-sayilar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 12px; }
.oy-sayilar div { background: var(--yuzey2); border-radius: var(--r); padding: 12px 6px; }
.oy-sayilar b { display: block; font-size: 22px; font-weight: 800; }
.oy-sayilar span { font-size: 12.5px; font-weight: 700; color: var(--y3); }
.oy-liste { width: 100%; text-align: left; margin-top: 14px; display: grid; gap: 8px; }
.oy-liste h3 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--y3); }
.oy-liste li { list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 10px 14px; background: var(--yuzey); box-shadow: var(--golge-1); border-radius: 14px; }
.oy-liste li b { font-size: 17px; font-weight: 800; }
.oy-liste li span { color: var(--y3); font-size: 14px; text-align: right; }
.oy-sonuc-dugme { display: grid; gap: 10px; width: 100%; margin-top: 20px; }

@media (max-height: 640px) {
  .oy-sahne { min-height: 92px; } .oy-sahne .oy-maskot { width: 56px; height: 92px; }
  .oy-soru { min-height: 150px; padding: 26px 16px 18px; }
  .oy-secenek button { min-height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Haus'u kur (hk-) */
.hk-noktalar { flex: 1; display: flex; gap: 6px; }
.hk-noktalar i { flex: 1; height: 8px; border-radius: 99px; background: var(--yuzey3); transition: background .3s; }
.hk-noktalar i.simdi { background: var(--y2); }
.hk-noktalar i.dogru { background: var(--yesil-dolgu); }
.hk-noktalar i.yanlis { background: var(--kirmizi-dolgu); }
.hk-haklar { display: flex; gap: 4px; }
.hk-haklar i { width: 12px; height: 10px; border-radius: 3px; background: #B4502D; transition: transform .3s var(--yay), opacity .3s; }
.hk-haklar i.gitti { opacity: .18; transform: translateY(4px) rotate(18deg); }
.hk-sahne { position: relative; height: 205px; display: flex; justify-content: center; }
.hk-ev { height: 205px; width: auto; overflow: visible; }
.hk-yer { stroke: var(--yuzey3); stroke-width: 3; stroke-linecap: round; }
.hk-tugla { fill: #E9DCCB; stroke: #C9B08F; stroke-width: 1.2; }
.hk-kapi { fill: #141414; } .hk-tokmak { fill: var(--sari); }
.hk-pencere { fill: var(--sari-zemin); stroke: #141414; stroke-width: 2.5; } .hk-cerceve { stroke: #141414; stroke-width: 2; fill: none; }
.hk-cati-siyah, .hk-cati-kirmizi { stroke-width: 13; stroke-linecap: round; fill: none; }
.hk-cati-siyah { stroke: #141414; } .hk-cati-kirmizi { stroke: #C8102E; }
.hk-parca { opacity: 0; transform: translateY(-46px); transition: opacity .25s, transform .55s var(--yay); transform-box: fill-box; }
.hk-parca.var { opacity: 1; transform: none; }
.hk-maskot { position: absolute; left: 0; bottom: -4px; width: 72px; height: 120px; }
.hk-balon { position: absolute; right: 0; top: -8px; max-width: 42%; margin: 0; padding: 8px 12px; font-size: 14px; font-weight: 700; border-radius: 18px 18px 6px 18px; }
.hk-ipucu { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; font-size: 16px; color: var(--y2); text-align: center; }
.hk-ipucu b { font-size: 19px; color: var(--y1); }
.hk-harfsay { font-size: 13px; font-weight: 700; color: var(--y3); }
.hk-kelime { --hk-n: 8; display: flex; justify-content: center; gap: clamp(3px, 1.2vw, 6px); flex-wrap: nowrap; }
.hk-kutu { width: min(40px, calc((100vw - 36px - (var(--hk-n) - 1) * 5px) / var(--hk-n))); aspect-ratio: .82; border-radius: 10px; background: var(--yuzey2); border-bottom: 3px solid var(--yuzey3);
  display: grid; place-items: center; font-weight: 800; font-size: min(26px, calc((100vw - 36px) / var(--hk-n) * .62)); color: var(--y1); }
.hk-kutu.acik { background: var(--yuzey); box-shadow: var(--golge-1); border-bottom-color: var(--yesil-dolgu); }
.hk-kutu.kayip { color: var(--kirmizi); border-bottom-color: var(--kirmizi-dolgu); }
.hk-klavye { display: grid; gap: 6px; }
.hk-klavye > div { display: flex; justify-content: center; gap: 5px; }
.hk-tus { flex: 1; max-width: 40px; min-width: 0; height: 48px; border-radius: 10px; background: var(--yuzey2); box-shadow: inset 0 -3px 0 rgba(0,0,0,.1); font-weight: 800; font-size: 18px; transition: transform .12s, background .2s, color .2s; }
.hk-tus:active { transform: translateY(2px); }
.hk-tus.var { background: var(--yesil-zemin); color: var(--yesil); box-shadow: none; }
.hk-tus.yok { background: transparent; color: var(--y3); opacity: .45; box-shadow: none; }
.hk-ipucu-btn { margin-top: 10px; min-height: 44px; width: 100%; font-size: 15px; }
.hk-ipucu-btn[disabled] { opacity: .4; }
.hk-soru { text-align: center; font-weight: 800; margin-bottom: 10px; }
.hk-tam { font-size: 22px; font-weight: 800; }
.hk-tam span { font-size: 14px; font-weight: 600; color: var(--y2); }

/* Harf karıştır (hr-) */
.hr-satir { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; min-height: 56px; }
.hr-yuva, .hr-tas { width: 46px; height: 54px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 24px; }
.hr-yuva { background: var(--yuzey2); border: 2px dashed var(--yuzey3); }
.hr-yuva.dolu { border: 0; background: var(--yuzey); box-shadow: var(--golge-2); cursor: pointer; }
.hr-yuva.dogru { background: var(--yesil-zemin); color: var(--yesil); box-shadow: none; }
.hr-yuva.yanlis { background: var(--kirmizi-zemin); color: var(--kirmizi); box-shadow: none; }
.hr-tas { background: var(--sari); color: #141414; box-shadow: inset 0 -4px 0 rgba(0,0,0,.14); transition: transform .15s var(--egri), opacity .2s; }
.hr-tas:active { transform: translateY(2px) scale(.96); }
.hr-tas.bos { visibility: hidden; }
.hr-art { text-align: center; font-size: 15px; color: var(--y3); font-weight: 700; }
.hr-art b { font-size: 22px; color: var(--y1); }
.hr-dugmeler { display: flex; gap: 10px; margin-top: 12px; }
.hr-dugmeler .oy-btn { flex: 1; min-height: 46px; font-size: 15px; }

/* Hafıza kartları (hz-): masa, çevrilen kartlar (dönüş .hz-ic içinde, zıplama dış düğmede), bulunan çift yuvaları */
.hz-sahne { min-height: 104px; }
.hz-sahne .oy-maskot { width: 62px; height: 104px; }
.hz-sahne .oy-balon { margin-bottom: 18px; }
.hz-yuvalar { flex: 1; display: flex; justify-content: center; gap: 5px; }
.hz-yuva { width: 30px; height: 30px; border-radius: 9px; background: var(--yuzey3); display: grid; place-items: center; font-size: 17px; line-height: 1; font-weight: 800; color: #fff; box-shadow: inset 0 2px 0 rgba(20,20,20,.08); }
.hz-yuva.dolu { background: var(--sari-zemin); box-shadow: 0 0 0 2px var(--sari); }
.hz-yuva.art { font-size: 11px; box-shadow: none; } .hz-yuva.art.der { background: var(--der); } .hz-yuva.art.die { background: var(--die); } .hz-yuva.art.das { background: var(--das); }
.hz-masa { position: relative; padding: 12px; border-radius: var(--r-xb);
  background: radial-gradient(120% 90% at 50% 0%, #2B6E4F 0%, #1D5A3F 55%, #154631 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.08), inset 0 10px 30px rgba(0,0,0,.25), var(--golge-2); }
.hz-izgara { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; perspective: 900px; }
.hz-kart { position: relative; aspect-ratio: 1 / 1.08; border-radius: 16px; cursor: pointer; }
.hz-kart.hz-yeni { animation: hz-dagit .5s var(--yay) both; }
.hz-kart:disabled { cursor: default; }
@keyframes hz-dagit { from { transform: translateY(-40px) rotate(-8deg) scale(.6); opacity: 0; } }
.hz-ic { position: absolute; inset: 0; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform .5s var(--yay); }
.hz-kart.acik .hz-ic, .hz-kart.eslesti .hz-ic { transform: rotateY(180deg); }
.hz-kart:not(.acik):not(.eslesti):active .hz-ic { transform: scale(.95); }
.hz-yuz { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; padding: 6px; text-align: center; overflow: hidden; }
.hz-arka { background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 8px, transparent 8px 16px),
    linear-gradient(160deg, #2A2A2A, #111);
  box-shadow: 0 0 0 3px #fff inset, 0 6px 0 #0006, 0 10px 18px -6px rgba(0,0,0,.5); }
.hz-arka::after { content: ''; position: absolute; inset: auto 0 0; height: 7px; background: var(--bayrak); }
.hz-arka img { width: 52%; }
.hz-on { transform: rotateY(180deg); background: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.25), 0 10px 18px -6px rgba(0,0,0,.45); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.hz-on.resim { background: radial-gradient(circle at 50% 40%, #FFFBEA, #FFF1B8); }
.hz-on.resim span { font-size: clamp(40px, 13vw, 58px); line-height: 1; filter: drop-shadow(0 3px 2px rgba(0,0,0,.18)); }
.hz-on.de { grid-template-rows: auto 1fr; padding: 0; }
.hz-on.de i { font-style: normal; font-size: 13px; color: #fff; padding: 5px 0 4px; width: 100%; letter-spacing: .02em; }
.hz-on.de.der i { background: var(--der); } .hz-on.de.die i { background: var(--die); } .hz-on.de.das i { background: var(--das); }
.hz-on.de b { font-size: clamp(13px, 4.2vw, 17px); padding: 0 6px; align-self: center; }
.hz-on.tr { font-size: 15px; color: var(--y2); background: var(--yuzey2); }
.hz-kart.eslesti .hz-on { box-shadow: 0 0 0 4px var(--sari) inset, 0 0 22px 2px rgba(255,206,0,.55); }
.hz-kart.eslesti { opacity: .92; }
.hz-bilgi { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; text-align: center; font-weight: 700; color: var(--y2); }
.hz-bilgi b { color: var(--y1); font-size: 18px; }
.hz-bilgi-resim { font-size: 28px; line-height: 1; }
@media (max-width: 360px) { .hz-masa { padding: 8px; } .hz-izgara { gap: 7px; } .hz-yuva { width: 24px; height: 24px; font-size: 14px; } }
@media (max-height: 700px) { .hz-sahne { min-height: 84px; } .hz-sahne .oy-maskot { width: 50px; height: 84px; } .hz-kart { aspect-ratio: 1 / .9; } }
@media (prefers-reduced-motion: reduce) { .hz-kart.hz-yeni { animation: none; } .hz-ic { transition: none; } }
@media (max-height: 640px) { .hk-sahne { height: 130px; } .hk-ev { height: 130px; } .hk-maskot { width: 56px; height: 92px; } .hk-tus { height: 42px; } }
@media (max-width: 360px) { .hk-klavye > div { gap: 3px; } .hk-klavye { gap: 5px; } .hk-tus { font-size: 17px; } #uygulama { padding-left: 12px; padding-right: 12px; } }

/* ==== Oyun dünyası (2026-12-04, sahip: "ortamı daha oyun gibi bir hale getir"). Çizgi film dili: gökyüzü, bulut, tepe;
   kalın koyu çizgi (--cz), sert alt gölge, kabarık düğme. Yukarıdaki sade kuralları bilerek ezer. ==== */
:root { --cz: #1B1B2F; --cz-g: 0 5px 0 var(--cz); --cz-g-az: 0 2px 0 var(--cz);
  --gok1: #4FB0FF; --gok2: #A9DDFF; --gok3: #E3F5FF; --oy-ana: #FF5A5F;
  --k-artikel: #7FB2FF; --k-asmaca: #B79BFF; --k-hauskur: #FFB077; --k-harf: #FFD23F; --k-hafiza: #6FDCA0; --k-kilit: #D5DCE6; }
body[data-ekran="harf"] { --gok1: #FF9F5A; --gok2: #FFCB8E; --gok3: #FFEBD2; --oy-ana: #FFB300; }
body[data-ekran="asmaca"] { --gok1: #8A78F0; --gok2: #BDB0FF; --gok3: #E9E4FF; --oy-ana: #8E5CF7; }
body[data-ekran="hauskur"] { --oy-ana: #FF8A3D; }
body[data-ekran="hafiza"] { --gok1: #3CC3B0; --gok2: #9BE6DA; --gok3: #DDF8F3; --oy-ana: #2EB872; }
body[data-ekran="artikel"] { --gok1: #5C8CFF; --gok2: #A9C3FF; --gok3: #E1EAFF; --oy-ana: #4C86FF; }
body { background: linear-gradient(180deg, var(--gok1) 0%, var(--gok2) 46%, var(--gok3) 100%) fixed; color: var(--cz); transition: background .4s; }
body::before { content: ''; position: fixed; inset: 0 -50% auto 0; height: 300px; pointer-events: none; z-index: 0; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='300'%3E%3Cg fill='white'%3E%3Cellipse cx='90' cy='80' rx='62' ry='20'/%3E%3Cellipse cx='122' cy='64' rx='40' ry='26'/%3E%3Cellipse cx='70' cy='70' rx='28' ry='18'/%3E%3Cellipse cx='430' cy='44' rx='54' ry='16'/%3E%3Cellipse cx='458' cy='32' rx='32' ry='20'/%3E%3Cellipse cx='300' cy='190' rx='44' ry='13'/%3E%3Cellipse cx='322' cy='180' rx='24' ry='15'/%3E%3Cellipse cx='580' cy='150' rx='40' ry='12'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 640px 300px;
  animation: oy-bulut 90s linear infinite; }
@keyframes oy-bulut { to { transform: translateX(-640px); } }
body::after { content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: 130px; pointer-events: none; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 130' preserveAspectRatio='none'%3E%3Cpath d='M0 62 Q70 22 150 52 T300 38 T400 46 V130 H0Z' fill='%23A6E07C'/%3E%3Cpath d='M0 92 Q110 54 220 86 T400 78 V130 H0Z' fill='%2374C855'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%; }
#uygulama { position: relative; z-index: 1; }

/* Ortak parçalar */
.oy-ikon-btn { background: #fff; border: 3px solid var(--cz); border-radius: 50%; color: var(--cz); box-shadow: var(--cz-g-az); }
.oy-ikon-btn:hover { background: #FFF6CC; }
.oy-ikon-btn:active { transform: translateY(2px); box-shadow: none; }
.oy-btn { border: 3px solid var(--cz); box-shadow: var(--cz-g); transition: transform .1s, box-shadow .1s, background .2s; }
.oy-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cz); }
.oy-btn.ana { background: var(--vurgu); color: #fff; box-shadow: var(--cz-g); }
.oy-btn.ana:hover { background: #DE1A3A; }
.oy-btn.ikinci { background: #fff; color: var(--cz); }
.oy-btn[disabled] { box-shadow: none; transform: none; }
.oy-balon { background: #fff; border: 3px solid var(--cz); box-shadow: var(--cz-g-az); color: var(--cz); }
.oy-balon p { color: #3A3A55; }
.oy-balon.dogru { background: #DDF7E6; color: #0F6B3A; }
.oy-balon.yanlis { background: #FFE1E1; color: #A3161F; }
.oy-cip { border: 2px solid var(--cz); background: #fff; color: var(--cz); }
.oy-cip.sari { background: var(--sari); color: var(--cz); }

/* Giriş */
.oy-ust { padding-top: 2px; }
.oy-logo { background: #fff; border: 3px solid var(--cz); border-radius: 999px; padding: 4px 14px 4px 6px; box-shadow: var(--cz-g-az); }
.oy-logo img { width: 32px; height: 32px; }
.oy-logo b { font-size: 15px; }
.oy-hud { display: flex; align-items: center; gap: 6px; }
.oy-hud-cip { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 7px; border-radius: 999px; background: #fff; border: 3px solid var(--cz);
  box-shadow: var(--cz-g-az); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.oy-hud-cip svg { width: 20px; height: 20px; stroke: var(--cz); stroke-width: 1.4; }
.oy-hud-cip:nth-child(1) svg { color: #FFC21A; } .oy-hud-cip:nth-child(2) svg { color: #FF7A1A; }
.oy-yuvarlak { width: 40px; height: 40px; }
.oy-yuvarlak svg { width: 20px; height: 20px; }
.oy-karsi { margin-top: 14px; }
.oy-karsi .oy-maskot { width: 92px; height: 153px; }
.oy-karsi .oy-balon { margin-bottom: 40px; padding: 12px 16px; border-radius: 22px 22px 22px 4px; }
.oy-karsi .oy-balon h1 { font-size: 25px; }
.oy-kur-satir { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; }
.oy-kur-satir > span { font-weight: 800; font-size: 14px; color: var(--cz); }
.oy-kurlar { flex: 1; gap: 6px; }
.oy-kurlar button { min-height: 44px; background: #fff; border: 3px solid var(--cz); box-shadow: 0 4px 0 var(--cz); border-radius: 12px; font-size: 15px; color: var(--cz); }
.oy-kurlar button[aria-pressed="true"] { background: var(--sari); color: var(--cz); transform: translateY(3px); box-shadow: 0 1px 0 var(--cz); }
.oy-oyunlar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.oy-kart { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 10px 10px 14px; border: 3px solid var(--cz); border-radius: 22px;
  box-shadow: 0 6px 0 var(--cz); overflow: visible; transition: transform .1s, box-shadow .1s; }
.oy-kart:not([disabled]):hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--cz); }
.oy-kart:not([disabled]):active { transform: translateY(5px); box-shadow: 0 1px 0 var(--cz); }
.oy-kart.harf { grid-column: 1 / -1; }
.oy-kart.artikel { background: var(--k-artikel); } .oy-kart.asmaca { background: var(--k-asmaca); } .oy-kart.hauskur { background: var(--k-hauskur); }
.oy-kart.harf { background: var(--k-harf); } .oy-kart.hafiza { background: var(--k-hafiza); } .oy-kart.kilitli { background: var(--k-kilit); box-shadow: 0 4px 0 var(--cz); }
.oy-kart-resim { display: grid; place-items: center; width: 100%; height: 86px; border-radius: 16px; background: rgba(255,255,255,.38); margin-bottom: 6px; }
.oy-kart.harf .oy-kart-resim { height: 96px; }
.oy-cizim { height: 78px; width: auto; max-width: 100%; }
.oy-kart.harf .oy-cizim { height: 90px; }
.oy-kart b { font-size: 17px; line-height: 1.15; color: var(--cz); }
.oy-kart small { display: block; font-size: 12.5px; font-weight: 700; color: rgba(27,27,47,.72); line-height: 1.25; }
.oy-kart.kilitli .oy-cizim { filter: grayscale(1); opacity: .45; }
.oy-kart.kilitli b, .oy-kart.kilitli small { opacity: .6; }
.oy-kilit { position: absolute; top: -10px; right: -8px; width: 34px; height: 34px; border-radius: 50%; background: var(--cz); color: #fff; display: grid; place-items: center; }
.oy-kilit svg { width: 17px; height: 17px; }
.oy-alt { justify-content: center; gap: 10px; padding-bottom: 6px; }
.oy-alt span { background: rgba(255,255,255,.85); border: 2px solid var(--cz); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: 13px; color: var(--cz); }

/* Oyun içi üst çubuk */
.oy-cubuk { height: 18px; background: #fff; border: 3px solid var(--cz); }
.oy-cubuk i { background: repeating-linear-gradient(-45deg, var(--oy-ana) 0 10px, color-mix(in srgb, var(--oy-ana) 75%, #fff) 10px 20px); border-radius: 0; }
.oy-sayac { background: #fff; border: 3px solid var(--cz); border-radius: 999px; padding: 4px 10px; color: var(--cz); box-shadow: var(--cz-g-az); white-space: nowrap; }
.hk-noktalar i { height: 14px; background: #fff; border: 2.5px solid var(--cz); }
.hk-noktalar i.simdi { background: var(--sari); } .hk-noktalar i.dogru { background: #3BCB7A; } .hk-noktalar i.yanlis { background: #FF5A5F; }
.hk-haklar i { width: 14px; height: 12px; border: 2px solid var(--cz); }

/* Soru ve seçenekler */
.oy-soru { border: 3px solid var(--cz); box-shadow: 0 6px 0 var(--cz); border-radius: 26px; }
.oy-soru::before { height: 12px; border-bottom: 3px solid var(--cz); background: var(--oy-renk, var(--oy-ana)); }
.oy-anlam { color: #55556E; }
.oy-secenek button { border: 3px solid var(--cz); box-shadow: 0 6px 0 var(--cz); color: #fff; transition: transform .1s, box-shadow .1s, opacity .25s; }
.oy-secenek button:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--cz); }
.oy-secenek .der { background: #4C86FF; color: #fff; } .oy-secenek .die { background: #FF5A5F; color: #fff; } .oy-secenek .das { background: #2FC27A; color: #fff; }
.oy-secenek button small { color: #fff; opacity: .85; }
.oy-secenek button.dogru-sec { box-shadow: 0 0 0 4px var(--sari), 0 6px 0 var(--cz); }
.oy-secenek button.secili.yanlis-sec { background: #FFE1E1; color: #A3161F; box-shadow: 0 6px 0 var(--cz); }
.oy-geri { background: #fff; border: 3px solid var(--cz); box-shadow: 0 6px 0 var(--cz); }
.oy-geri.dogru { background: #F0FFF5; } .oy-geri.yanlis { background: #FFF3F3; }
.oy-kural, .oy-ornek { background: #fff; border: 2px solid #D9DCE6; }

/* Haus'u kur ve adam asmaca: kelime kutuları, klavye */
.hk-ipucu, .aa-ipucu { align-self: center; background: #fff; border: 3px solid var(--cz); border-radius: 16px; padding: 6px 14px; box-shadow: var(--cz-g-az); color: var(--cz); }
.hk-ipucu b { color: var(--cz); }
.hk-kutu { background: rgba(255,255,255,.7); border: 3px solid var(--cz); border-radius: 10px; color: var(--cz); }
.hk-kutu.acik { background: #fff; box-shadow: 0 3px 0 var(--cz); border-bottom-color: var(--cz); }
.hk-kutu.kayip { background: #FFE1E1; color: #A3161F; border-bottom-color: var(--cz); }
.hk-tus { background: #fff; border: 2.5px solid var(--cz); box-shadow: 0 4px 0 var(--cz); color: var(--cz); border-radius: 10px; }
.hk-tus:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cz); }
.hk-tus.var { background: #6FDCA0; color: var(--cz); box-shadow: 0 2px 0 var(--cz); }
.hk-tus.yok { background: rgba(255,255,255,.35); color: var(--cz); opacity: .35; box-shadow: none; }
.hk-sahne .hk-balon { right: 0; }

/* Harf karıştır */
.hr-art { align-self: center; background: #fff; border: 3px solid var(--cz); border-radius: 18px; padding: 8px 18px; box-shadow: var(--cz-g); color: #55556E; display: grid; justify-items: center; gap: 4px; }
.hr-art b { color: var(--cz); }
.hr-yuva { background: rgba(255,255,255,.5); border: 3px dashed var(--cz); }
.hr-yuva.dolu { background: #fff; border: 3px solid var(--cz); box-shadow: 0 4px 0 var(--cz); }
.hr-yuva.dogru { background: #6FDCA0; color: var(--cz); border: 3px solid var(--cz); box-shadow: 0 4px 0 var(--cz); }
.hr-yuva.yanlis { background: #FF8A8E; color: var(--cz); border: 3px solid var(--cz); box-shadow: 0 4px 0 var(--cz); }
.hr-tas { background: var(--sari); border: 3px solid var(--cz); box-shadow: 0 5px 0 var(--cz); color: var(--cz); }
.hr-tas:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cz); }

/* Hafıza */
.hz-masa { border: 3px solid var(--cz); box-shadow: 0 6px 0 var(--cz), inset 0 10px 30px rgba(0,0,0,.25); }
.hz-yuva { border: 2.5px solid var(--cz); background: rgba(255,255,255,.7); box-shadow: none; }
.hz-yuva.dolu { background: #fff; box-shadow: 0 0 0 2px var(--sari); }
.hz-bilgi { background: #fff; border: 3px solid var(--cz); border-radius: 16px; padding: 4px 12px; align-self: center; box-shadow: var(--cz-g-az); }
.hz-bilgi:empty { visibility: hidden; }

/* Sonuç */
.oy-halka { background: #fff; border: 3px solid var(--cz); border-radius: 50%; box-shadow: var(--cz-g); padding: 8px; }
.oy-sonuc h2 { color: var(--cz); }
.oy-sonuc > p { color: #3A3A55; background: rgba(255,255,255,.8); border-radius: 14px; padding: 6px 12px; }
.oy-sayilar div { background: #fff; border: 3px solid var(--cz); box-shadow: 0 4px 0 var(--cz); }
.oy-liste li { border: 2.5px solid var(--cz); box-shadow: 0 3px 0 var(--cz); }
.oy-liste h3 { color: var(--cz); }

/* Adam asmaca (aa-): ahşap darağacı, ilmikli ip, gömlekli adam (çizgi film dili, kalın koyu çizgi) */
.aa-sahne { position: relative; display: grid; justify-items: center; }
.aa-cizim { width: min(100%, 300px); height: auto; aspect-ratio: 240 / 200; overflow: visible; filter: drop-shadow(0 4px 0 rgba(27,27,47,.18)); }
.aa-tepe { fill: #74C855; stroke: var(--cz); stroke-width: 3; stroke-linejoin: round; }
.aa-tepe-acik { fill: none; stroke: #A6E07C; stroke-width: 4; stroke-linecap: round; }
.aa-agac rect, .aa-agac path { fill: #C98B4E; stroke: var(--cz); stroke-width: 3; stroke-linejoin: round; }
.aa-damar path { stroke: #A46A34; stroke-width: 2; stroke-linecap: round; fill: none; }
.aa-ip-dis { stroke: var(--cz); stroke-width: 8; stroke-linecap: round; }
.aa-ip-ic { stroke: #E9C77E; stroke-width: 4; stroke-linecap: round; }
.aa-ilmik { fill: none; stroke: var(--cz); stroke-width: 7; } .aa-ilmik-ic { fill: none; stroke: #E9C77E; stroke-width: 3.5; }
.aa-ip { transition: opacity .3s; }
.aa-adam { transform-box: view-box; transform-origin: 160px 32px; }
.aa-parca { opacity: 0; transform: scale(.5); transform-box: fill-box; transform-origin: center; transition: opacity .25s, transform .45s var(--yay); }
.aa-parca.var { opacity: 1; transform: none; }
.aa-adam .dis { stroke: var(--cz); stroke-width: 12; stroke-linecap: round; fill: none; }
.aa-kol .ic { stroke: #FFD2A6; stroke-width: 6; stroke-linecap: round; fill: none; }
.aa-bacak .ic { stroke: #3A4A8C; stroke-width: 6; stroke-linecap: round; fill: none; }
.aa-govde rect { fill: #FF8A3D; stroke: var(--cz); stroke-width: 3; }
.aa-bas > circle { fill: #FFD2A6; stroke: var(--cz); stroke-width: 3; }
.aa-sac { fill: #5A3A22; stroke: var(--cz); stroke-width: 2; stroke-linejoin: round; }
.aa-yuz circle { fill: var(--cz); }
.aa-yuz path, .aa-x path { stroke: var(--cz); stroke-width: 2.6; stroke-linecap: round; fill: none; }
.aa-x { display: none; }
/* Kazanınca: çizilen parçalar silinir, darağacı boş kalır */
.aa-cizim.kurtuldu .aa-parca { opacity: 0; transform: translateY(-30px) scale(.6); transition-duration: .5s; }
/* Kaybedince: adam asılı, gözler çarpı, hafif sallanır */
.aa-cizim.asildi .aa-yuz { display: none; } .aa-cizim.asildi .aa-x { display: inline; }
.aa-cizim.asildi .aa-adam { animation: aa-salin 1.8s ease-in-out infinite alternate; }
@keyframes aa-salin { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.aa-yanlislar { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; min-height: 30px; margin-top: 6px; }
.aa-yanlislar span { width: 28px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #FFE1E1; border: 2.5px solid var(--cz); font-weight: 800; font-size: 16px; color: #A3161F; }
.aa-durum { align-self: center; text-align: center; font-weight: 800; font-size: 15.5px; color: var(--cz); background: rgba(255,255,255,.88); border: 2.5px solid var(--cz); border-radius: 999px; padding: 6px 16px; }
.aa-durum.dogru { background: #DDF7E6; color: #0F6B3A; }
.aa-durum.yanlis { background: #FFE1E1; color: #A3161F; }
.aa-haklar { display: flex; gap: 2px; }
.aa-haklar i { display: grid; color: #FF4D5E; transition: transform .3s var(--yay), opacity .3s; }
.aa-haklar i svg { width: 19px; height: 19px; stroke: var(--cz); stroke-width: 1.6; }
.aa-haklar i.gitti { opacity: .25; transform: scale(.75); filter: grayscale(1); }
.aa-kelime { align-items: stretch; }
.aa-art { display: grid; place-items: center; padding: 0 8px; margin-right: 4px; border-radius: 10px; border: 3px solid var(--cz); color: #fff; font-weight: 800;
  font-size: min(20px, calc((100vw - 36px) / var(--hk-n) * .5)); box-shadow: 0 3px 0 var(--cz); }
.aa-ipucu { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.oy-oyun.aa { gap: 12px; }

@media (max-height: 700px) {
  .aa-cizim { width: min(100%, 210px); }
  .oy-karsi .oy-maskot { width: 70px; height: 116px; }
  .oy-kart-resim { height: 70px; } .oy-cizim { height: 62px; } .oy-kart.harf .oy-kart-resim { height: 76px; } .oy-kart.harf .oy-cizim { height: 70px; }
}
@media (max-width: 360px) { .oy-hud-cip { padding: 0 7px 0 5px; font-size: 13px; } .oy-logo b { display: none; } .oy-kurlar button { font-size: 13px; } .oy-kur-satir > span { display: none; } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } .aa-cizim .aa-adam { animation: none !important; } }
.oy-seri { border: 2.5px solid var(--cz); box-shadow: var(--cz-g-az); }
@media (min-height: 760px) {
  .aa-cizim { width: min(100%, 330px); }
  .hr-yuva, .hr-tas { width: 54px; height: 64px; font-size: 28px; border-radius: 14px; }
  .hr-satir { gap: 8px; min-height: 68px; }
  .oy-oyun.hr { gap: 22px; }
}
@media (min-height: 760px) and (max-width: 400px) { .hr-yuva, .hr-tas { width: min(54px, calc((100vw - 36px) / 6 - 8px)); } }
.oy-halka small { font-size: 11px; max-width: 96px; }
.oy-halka b { font-size: 34px; }

/* Yeni oyunların renkleri ve gökleri */
:root { --k-cember: #5ED3F3; --k-av: #FF9EC7; --k-zincir: #B5E86B; }
.oy-kart.cember { background: var(--k-cember); } .oy-kart.av { background: var(--k-av); } .oy-kart.zincir { background: var(--k-zincir); }
body[data-ekran="cember"] { --gok1: #2E5FD8; --gok2: #7FA4F5; --gok3: #D3E0FF; --oy-ana: #5ED3F3; }
body[data-ekran="av"] { --gok1: #FF7FB0; --gok2: #FFB8D2; --gok3: #FFE6F0; --oy-ana: #FF5C9A; }
body[data-ekran="zincir"] { --gok1: #34B89A; --gok2: #8EDDC6; --gok3: #DDF6EE; --oy-ana: #7BC74D; }

/* Yazma kutusu (yz-) */
.yz-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.yz-satir { display: flex; gap: 8px; }
.yz-girdi { flex: 1; min-width: 0; width: 100%; height: 56px; padding: 0 16px; border-radius: 16px; border: 3px solid var(--cz); background: #fff; color: var(--cz);
  font: 800 22px/1 'Plus Jakarta Sans', system-ui, sans-serif; box-shadow: inset 0 3px 0 rgba(27,27,47,.08); }
.yz-girdi::placeholder { color: #9A9AB0; font-weight: 700; font-size: 18px; }
.yz-girdi:focus { outline: none; border-color: var(--cz); box-shadow: 0 0 0 4px var(--sari); }
.yz-gonder { width: 64px; min-height: 56px; padding: 0; }
.yz-gonder svg { width: 26px; height: 26px; stroke-width: 3; }
.yz-ozel { display: flex; gap: 6px; }
.yz-harf { width: 44px; height: 40px; border-radius: 10px; background: #fff; border: 2.5px solid var(--cz); box-shadow: 0 3px 0 var(--cz); font-weight: 800; font-size: 18px; color: var(--cz); }
.yz-harf:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cz); }
.yz-pas { margin-left: auto; min-height: 40px; padding: 0 20px; font-size: 15px; box-shadow: 0 3px 0 var(--cz); }
.yz-form button[disabled], .yz-girdi[disabled] { opacity: .55; }

/* Ortak ipucu kartı ve geri bildirim (ce-) */
.ce-ipucu { background: #fff; border: 3px solid var(--cz); border-radius: 20px; box-shadow: var(--cz-g); padding: 10px 14px; text-align: center; display: grid; gap: 4px; }
.ce-kural { font-size: 14px; font-weight: 700; color: #55556E; }
.ce-kural b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; background: var(--sari); border: 2px solid var(--cz); color: var(--cz); font-size: 16px; margin: 0 2px; }
.ce-anlam { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ce-anlam b { font-size: 21px; font-weight: 800; color: var(--cz); line-height: 1.2; }
.ce-art { color: #fff; font-weight: 800; font-size: 14px; border: 2px solid var(--cz); border-radius: 8px; padding: 1px 8px; }
.ce-say { font-size: 12.5px; font-weight: 700; color: #7A7A92; }
.ce-geri { min-height: 30px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 17px; color: var(--cz); text-align: center; flex-wrap: wrap; }
.ce-geri svg { width: 22px; height: 22px; flex: none; }
.ce-geri.dogru { color: #0F6B3A; } .ce-geri.yanlis { color: #A3161F; }
.ce-geri small { font-size: 13px; color: #55556E; }
.ce-geri:not(:empty) { background: rgba(255,255,255,.9); border: 2.5px solid var(--cz); border-radius: 999px; padding: 3px 14px; align-self: center; }
.ce-puan, .ce-sure-cip { display: inline-flex; align-items: center; gap: 4px; }
.ce-puan svg { width: 18px; height: 18px; color: #FFC21A; stroke: var(--cz); stroke-width: 1.4; }
.ce-sure-cip { min-width: 64px; justify-content: center; }
.ce-sure-cip.az { background: #FF5A5F; color: #fff; animation: ce-nabiz 1s ease-in-out infinite; }
@keyframes ce-nabiz { 50% { transform: scale(1.08); } }

/* Harf çemberi */
.oy-oyun.ce, .oy-oyun.zn { gap: 10px; }
.ce-sahne { position: relative; display: grid; place-items: center; }
.ce-cember { --boy: min(84vw, 300px, 40vh); position: relative; width: var(--boy); height: var(--boy); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.28) 0 55%, rgba(255,255,255,.12) 56%); border: 3px solid rgba(27,27,47,.25); }
.ce-harf { --a: calc(360deg / var(--n) * var(--i) - 90deg); position: absolute; left: 50%; top: 50%; width: calc(var(--boy) * .1); height: calc(var(--boy) * .1);
  margin: calc(var(--boy) * -.05) 0 0 calc(var(--boy) * -.05); border-radius: 50%; display: grid; place-items: center;
  transform: rotate(var(--a)) translate(calc(var(--boy) * .44)) rotate(calc(-1 * var(--a)));
  background: #fff; border: 2.5px solid var(--cz); font-weight: 800; font-size: calc(var(--boy) * .05); color: var(--cz); transition: background .25s, transform .25s; }
.ce-harf.pas { background: #FFD23F; } .ce-harf.dogru { background: #3BCB7A; color: #fff; } .ce-harf.yanlis { background: #FF5A5F; color: #fff; }
.ce-harf.simdi { transform: rotate(var(--a)) translate(calc(var(--boy) * .44)) rotate(calc(-1 * var(--a))) scale(1.35); background: #fff; box-shadow: 0 0 0 4px var(--sari); z-index: 2; }
.ce-merkez { position: absolute; inset: 22%; border-radius: 50%; background: #fff; border: 3px solid var(--cz); box-shadow: 0 5px 0 var(--cz); display: grid; place-content: center; text-align: center; }
.ce-buyuk { font-size: calc(var(--boy) * .2); font-weight: 800; line-height: 1; color: var(--cz); }
.ce-sure { font-size: calc(var(--boy) * .065); font-weight: 800; color: #55556E; font-variant-numeric: tabular-nums; }
.ce-maskot { position: absolute; left: -4px; bottom: -6px; width: 60px; height: 100px; }

/* Kelime zinciri: tren */
.zn-sure-cubuk i { transition: width .25s linear; }
.zn-sahne { display: flex; align-items: flex-end; gap: 6px; }
.zn-maskot { width: 56px; height: 94px; flex: none; }
.zn-tren { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 6px; overflow-x: auto; padding: 10px 4px 14px; scroll-snap-type: x proximity;
  background: linear-gradient(transparent calc(100% - 8px), #7A4A1F calc(100% - 8px), #7A4A1F calc(100% - 5px), transparent calc(100% - 5px)); scrollbar-width: none; }
.zn-tren::-webkit-scrollbar { display: none; }
.zn-lokomotif { flex: none; width: 54px; height: 60px; position: relative; background: #E8323F; border: 3px solid var(--cz); border-radius: 10px 6px 6px 6px; box-shadow: 0 4px 0 var(--cz); }
.zn-lokomotif::before { content: ''; position: absolute; left: 6px; top: -16px; width: 14px; height: 16px; background: var(--cz); border-radius: 3px 3px 0 0; }
.zn-lokomotif::after { content: ''; position: absolute; right: 7px; top: 8px; width: 18px; height: 16px; background: #FFE66D; border: 2.5px solid var(--cz); border-radius: 4px; }
.zn-vagon { flex: none; position: relative; min-width: 84px; padding: 0 0 8px; background: #fff; border: 3px solid var(--cz); border-radius: 10px; box-shadow: 0 4px 0 var(--cz);
  display: grid; text-align: center; scroll-snap-align: end; }
.zn-vagon::before { content: ''; position: absolute; left: -9px; bottom: 14px; width: 6px; height: 4px; background: var(--cz); }
.zn-cati { font-style: normal; color: #fff; font-weight: 800; font-size: 11px; border-bottom: 3px solid var(--cz); border-radius: 7px 7px 0 0; padding: 1px 0; }
.zn-vagon b { font-size: 16px; font-weight: 800; padding: 6px 10px 0; color: var(--cz); white-space: nowrap; }
.zn-vagon mark { background: var(--sari); color: var(--cz); border-radius: 4px; padding: 0 2px; }
.zn-vagon.yanlis { background: #FFE1E1; } .zn-vagon.pas { background: #ECEEF4; } .zn-vagon.ilk { background: #FFF6CC; }
.zn-teker { position: absolute; left: 12px; bottom: -11px; width: 16px; height: 16px; border-radius: 50%; background: var(--cz); border: 3px solid #8A8AA0; }
.zn-teker.sag { left: auto; right: 12px; }
.zn-gel { animation: zn-gel .5s var(--yay); }
@keyframes zn-gel { from { transform: translateX(40px); opacity: 0; } }

/* Kelime avı */
.av-sahne { min-height: 96px; }
.av-sahne .oy-maskot { width: 56px; height: 94px; }
.av-sahne .oy-balon { margin-bottom: 16px; font-size: 14.5px; }
.av-ipucu-btn { min-height: 40px; padding: 0 14px; font-size: 14px; box-shadow: 0 3px 0 var(--cz); }
.av-tahta { padding: 10px; border-radius: 22px; background: #FFF8E6; border: 3px solid var(--cz); box-shadow: 0 6px 0 var(--cz); touch-action: none; user-select: none; -webkit-user-select: none; }
.av-izgara { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.av-hucre { aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; background: #fff; border: 2px solid #D9CDB0; font-weight: 800; font-size: clamp(16px, 5.4vw, 24px);
  color: var(--cz); cursor: pointer; transition: background .15s, transform .15s; }
.av-hucre.bulundu { background: var(--renk); border-color: var(--cz); }
.av-hucre.secili { background: var(--sari); border-color: var(--cz); transform: scale(1.08); }
.av-hucre.ipucu { box-shadow: 0 0 0 4px #FF5A5F; border-color: var(--cz); }
.av-liste { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.av-madde { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; background: #fff; border: 2.5px solid var(--cz); border-radius: 14px; padding: 6px 10px; box-shadow: 0 3px 0 var(--cz); min-height: 50px; }
.av-madde > b { grid-column: 1 / -1; font-size: 15px; line-height: 1.2; }
.av-madde > small { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: #7A7A92; }
.av-madde.tamam { background: color-mix(in srgb, var(--renk) 45%, #fff); }
.av-madde.tamam svg { width: 18px; height: 18px; color: #0F6B3A; }
.av-madde.tamam > span { font-size: 15px; font-weight: 700; }
.av-madde.tamam > small { color: #3A3A55; }

@media (max-height: 700px) {
  .ce-cember { --boy: min(80vw, 230px, 38vh); }
  .ce-anlam b { font-size: 18px; }
  .yz-girdi { height: 50px; font-size: 20px; } .yz-gonder { min-height: 50px; }
  .av-sahne { min-height: 70px; } .av-sahne .oy-maskot { width: 42px; height: 70px; }
}
@media (max-width: 360px) { .yz-harf { width: 38px; } .zn-vagon b { font-size: 14px; } }

/* Harf aç ipucu (yz-desen) */
.yz-desen { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.yz-kutular { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.yz-kutular i { font-style: normal; width: 22px; height: 28px; display: grid; place-items: center; border-bottom: 3px solid var(--cz); font-weight: 800; font-size: 17px; color: var(--cz); }
.yz-kutular i.acik { background: var(--sari); border-radius: 5px 5px 0 0; }
.yz-kutular i.bosluk { width: 10px; border-bottom: 0; }
.yz-ac { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 10px; border-radius: 999px; border: 2.5px solid var(--cz); background: #FFF3C4; font-weight: 800; font-size: 13.5px; color: var(--cz); box-shadow: 0 3px 0 var(--cz); }
.yz-ac svg { width: 17px; height: 17px; stroke-width: 2.2; }
.yz-ac:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cz); }
.yz-ac[disabled] { opacity: .45; }
@media (max-width: 360px) { .yz-kutular i { width: 17px; height: 24px; font-size: 14px; } }
.ar-ipucu { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px auto 0; min-height: 42px; padding: 0 18px; font-size: 15px; box-shadow: 0 3px 0 var(--cz); }
.ar-ipucu svg { width: 18px; height: 18px; }
.oy-secenek button.elendi { opacity: .3; text-decoration: line-through; transform: none; }

/* ==== Sade Almanya (2026-12-04, sahip: "almanyayı yansıtan sade bir tasarım olmalı evler çok karmaşık"; seçim "Tek renk şehir silueti").
   Düz renkli sade kutular, ince kenar, gölge az; bulut yok; ekranın altında tek renk siluet; üstte ince bayrak şeridi.
   Yukarıdaki kuralları bilerek ezer. ==== */
:root { --cz: #1A1A1A; --cz-g: 0 3px 0 var(--cz); --cz-g-az: 0 2px 0 var(--cz); --vurgu: #D81E16; --altin: #FFCE00; --yuzey-s: #FFFFFF;
  --k-harf: #FFD84D; --k-cember: #A8DCEB; --k-asmaca: #CDB9EC; --k-av: #F6BCCB; --k-zincir: #BFDDA6; --k-hauskur: #F6B98C; --k-hafiza: #A6DEC4; --k-artikel: #B3CBF3; --k-kilit: #E2DFD8; }
body { background: linear-gradient(180deg, var(--gok2) 0%, var(--gok3) 70%) fixed; }
body::before { content: ''; inset: 0 0 auto 0; height: 6px; opacity: 1; animation: none; z-index: 5;
  background: linear-gradient(90deg, #1A1A1A 0 33.3%, #DD0000 33.3% 66.6%, #FFCE00 66.6%); }
body::after { height: 120px; opacity: 1; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20120%22%3E%3Cg%20fill%3D%22%231B1B2F%22%20opacity%3D%22.15%22%3E%20%3Crect%20x%3D%220%22%20y%3D%22113%22%20width%3D%22400%22%20height%3D%227%22%2F%3E%20%3Crect%20x%3D%2220%22%20y%3D%2260%22%20width%3D%22120%22%20height%3D%2210%22%2F%3E%3Crect%20x%3D%2247%22%20y%3D%2250%22%20width%3D%2266%22%20height%3D%2210%22%2F%3E%3Crect%20x%3D%2272%22%20y%3D%2240%22%20width%3D%2216%22%20height%3D%2210%22%2F%3E%20%3Cpath%20d%3D%22M76%2040l-6-8h4l6%205%206-5h4l-6%208z%22%2F%3E%3Crect%20x%3D%2226%22%20y%3D%2270%22%20width%3D%227%22%20height%3D%2244%22%2F%3E%3Crect%20x%3D%2243%22%20y%3D%2270%22%20width%3D%227%22%20height%3D%2244%22%2F%3E%3Crect%20x%3D%2260%22%20y%3D%2270%22%20width%3D%227%22%20height%3D%2244%22%2F%3E%3Crect%20x%3D%2281%22%20y%3D%2270%22%20width%3D%227%22%20height%3D%2244%22%2F%3E%3Crect%20x%3D%2298%22%20y%3D%2270%22%20width%3D%227%22%20height%3D%2244%22%2F%3E%3Crect%20x%3D%22115%22%20y%3D%2270%22%20width%3D%227%22%20height%3D%2244%22%2F%3E%20%3Cpath%20d%3D%22M140%20113V86l12-12%2012%2012v27zM164%20113V92l10-10%2010%2010v21z%22%2F%3E%20%3Cpath%20d%3D%22M194%20113l3-74h4l3%2074z%22%2F%3E%3Ccircle%20cx%3D%22199%22%20cy%3D%2238%22%20r%3D%2210%22%2F%3E%3Crect%20x%3D%22198%22%20y%3D%228%22%20width%3D%222.4%22%20height%3D%2222%22%2F%3E%3Crect%20x%3D%22194.5%22%20y%3D%2250%22%20width%3D%229%22%20height%3D%224%22%2F%3E%20%3Cpath%20d%3D%22M210%20113V80l14-14%2014%2014v33zM238%20113V88l11-11%2011%2011v25zM260%20113V82l13-13%2013%2013v31z%22%2F%3E%20%3Cpath%20d%3D%22M292%20113V58h16V30l8-24%208%2024v28h8V30l8-24%208%2024v28h16v55z%22%2F%3E%3Crect%20x%3D%22300%22%20y%3D%2278%22%20width%3D%2258%22%20height%3D%2235%22%2F%3E%20%3Cpath%20d%3D%22M366%20113V84l12-12%2012%2012v29zM390%20113V92l10-10v31z%22%2F%3E%20%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center bottom / min(100%, 560px) auto,
  linear-gradient(transparent calc(100% - 7px), rgba(27,27,47,.15) calc(100% - 7px)); }

/* Paneller ve düğmeler: düz, ince kenar */
.oy-balon, .ce-ipucu, .hr-art, .hk-ipucu, .aa-ipucu, .oy-geri, .hz-bilgi, .oy-soru, .av-madde, .oy-sayilar div, .oy-liste li, .oy-hud-cip, .oy-sayac, .oy-logo,
.oy-alt span, .oy-ikon-btn, .yz-girdi, .yz-harf, .hk-tus, .oy-cubuk, .ce-merkez, .ce-harf, .zn-vagon, .oy-halka, .av-tahta, .hz-yuva {
  border-width: 2px; border-color: var(--cz); }
.oy-balon, .ce-ipucu, .hr-art, .oy-geri, .oy-soru { box-shadow: 0 3px 0 var(--cz); }
.oy-hud-cip, .oy-sayac, .oy-logo, .oy-ikon-btn, .oy-liste li, .av-madde, .oy-sayilar div, .hz-bilgi, .hk-ipucu, .aa-ipucu { box-shadow: 0 2px 0 var(--cz); }
.ce-ipucu, .hr-art, .oy-geri, .oy-soru { border-radius: 16px; }
.oy-btn { border-width: 2px; border-radius: 14px; box-shadow: 0 3px 0 var(--cz); }
.oy-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cz); }
.oy-btn.ana { background: var(--vurgu); } .oy-btn.ana:hover { background: #B8170F; }
.oy-secenek button { border-width: 2px; box-shadow: 0 4px 0 var(--cz); }
.oy-secenek button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cz); }
.hr-tas, .hr-yuva.dolu, .hr-yuva.dogru, .hr-yuva.yanlis, .hk-kutu { border-width: 2px; box-shadow: 0 3px 0 var(--cz); }
.hr-yuva { border-width: 2px; }
.hk-tus { box-shadow: 0 3px 0 var(--cz); }
.hk-tus.yok { background: #E6E4DF; opacity: 1; color: rgba(26,26,26,.28); box-shadow: none; }
.yz-ac { background: var(--altin); border-width: 2px; box-shadow: 0 2px 0 var(--cz); }
.av-hucre { border-radius: 8px; }
.av-ipucu-btn svg { width: 18px; height: 18px; }
@media (max-width: 360px) { .av-ipucu-btn { font-size: 0; gap: 0; padding: 0 10px; } }

/* Giriş: sade kutular */
.oy-logo { border-radius: 12px; }
.oy-kurlar button { border-width: 2px; border-radius: 10px; box-shadow: 0 3px 0 var(--cz); }
.oy-kurlar button[aria-pressed="true"] { background: var(--cz); color: #fff; transform: translateY(2px); box-shadow: 0 1px 0 var(--cz); }
.oy-oyunlar { gap: 12px; }
.oy-kart { border-width: 2px; border-radius: 18px; box-shadow: 0 3px 0 var(--cz); padding: 12px 10px 14px; }
.oy-kart:not([disabled]):hover { box-shadow: 0 5px 0 var(--cz); }
.oy-kart:not([disabled]):active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cz); }
.oy-kart-resim { background: transparent; height: 80px; margin-bottom: 4px; }
.oy-kart.harf .oy-kart-resim { height: 90px; }
.oy-kart b { font-size: 16.5px; }
.oy-kilit { width: 30px; height: 30px; top: -8px; right: -6px; }
.hz-hazir { display: flex; margin: 12px auto 0; min-height: 46px; padding: 0 22px; font-size: 16px; }

/* Kelime zinciri: cümle sırala */
.zn-vagon.bos { background: rgba(255,255,255,.45); border-style: dashed; min-width: 56px; box-shadow: none; }
.zn-vagon.bos b { min-height: 25px; }
.zn-vagon.simdi { border-color: var(--cz); border-style: solid; box-shadow: 0 0 0 3px var(--altin, #FFCE00); }
.zn-cati.sade { background: #CFCAC0; min-height: 17px; }
.zn-secenek { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 4px 0; }
.zn-kart { min-height: 46px; padding: 0 14px; border-radius: 10px; background: #fff; border: 2px solid var(--cz); box-shadow: 0 3px 0 var(--cz);
  font-weight: 800; font-size: 18px; color: var(--cz); transition: opacity .2s, transform .1s; }
.zn-kart:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cz); }
.zn-kart.kullanildi { opacity: .18; box-shadow: none; }
.zn-kart.ipucu { background: var(--altin, #FFCE00); }
.zn-alt { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.zn-alt-btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
.zn-alt-btn svg { width: 18px; height: 18px; }
.zn-kalk { animation: zn-kalk .9s ease-in-out; }
@keyframes zn-kalk { 40% { transform: translateX(-14px); } 100% { transform: none; } }
@media (max-width: 360px) { .zn-kart { font-size: 16px; padding: 0 10px; min-height: 42px; } }

/* ==== Duyarlı düzen (2026-12-04, sahip: "pc ve mobil için ... mobil ve web responsive olsun"). Telefon dikey temel düzendir;
   aşağıdakiler masaüstü, tablet ve yatay telefon için. ==== */
body::after { height: clamp(110px, 13vw, 210px); background-size: auto 100%, 100% 100%; background-position: center bottom, 0 0; }
.oy-oyun { width: 100%; }

/* Tablet ve masaüstü: giriş ekranı genişler, oyun kutuları 3 ya da 4 sütun */
@media (min-width: 720px) {
  body[data-ekran="giris"] #uygulama { max-width: 980px; padding-left: 28px; padding-right: 28px; }
  body[data-ekran="giris"] .oy-oyunlar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  body[data-ekran="giris"] .oy-kart.harf { grid-column: span 1; }
  body[data-ekran="giris"] .oy-karsi { justify-content: center; }
  body[data-ekran="giris"] .oy-karsi .oy-balon { flex: 0 1 560px; }
  body[data-ekran="giris"] .oy-kur-satir { justify-content: center; }
  body[data-ekran="giris"] .oy-kurlar { flex: 0 1 520px; }
  #uygulama { max-width: 640px; }
}
@media (min-width: 1100px) {
  body[data-ekran="giris"] #uygulama { max-width: 1180px; }
  body[data-ekran="giris"] .oy-oyunlar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .oy-kart:not([disabled]) { cursor: pointer; }
}
/* Masaüstünde oyun alanı ekran yüksekliğine sığar */
@media (min-width: 720px) and (min-height: 540px) {
  .hz-masa { width: min(100%, calc((100dvh - 230px) / 1.5 + 28px)); margin-inline: auto; }
  .av-tahta { width: min(100%, calc(100dvh - 300px)); min-width: 320px; margin-inline: auto; }
  .av-hucre { font-size: clamp(15px, 2.6dvh, 24px); }
  .ce-cember { --boy: min(84vw, 340px, 44dvh); }
}
@media (hover: hover) {
  .oy-btn:not([disabled]):hover, .zn-kart:not([disabled]):hover, .hk-tus:not([disabled]):hover, .hr-tas:hover, .yz-harf:hover, .oy-kurlar button:hover { filter: brightness(1.04); transform: translateY(-1px); }
  .hz-kart:not(.acik):not(.eslesti):hover .hz-ic { transform: translateY(-3px); }
  .av-hucre:hover { background: #FFF3C4; }
}
:focus-visible { outline: 3px solid #1F4E9C; outline-offset: 2px; }

/* Yatay telefon: iki sütun; solda oyun alanı, sağda ipucu ve düğmeler */
@media (orientation: landscape) and (max-height: 520px) {
  #uygulama { max-width: 920px; padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  body::after { height: 70px; }
  main.oy-oyun { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; row-gap: 8px; align-content: start; align-items: start; }
  main.oy-oyun > * { grid-column: 2; min-width: 0; }
  main.oy-oyun > .oy-cubuk-satir { grid-column: 1 / -1; }
  main.oy-oyun > .oy-sahne, main.oy-oyun > .hk-sahne, main.oy-oyun > .aa-sahne, main.oy-oyun > .ce-sahne, main.oy-oyun > .zn-sahne { grid-column: 1; grid-row: 2 / span 8; }
  main.hz > .hz-sahne, main.av > .av-sahne { grid-column: 2; grid-row: auto; }
  main.hz > .hz-masa, main.av > .av-tahta { grid-column: 1; grid-row: 2 / span 8; justify-self: center; }
  .hz-masa { width: min(100%, calc((100dvh - 70px) / 1.45)); }
  .av-tahta { width: min(100%, calc(100dvh - 64px)); }
  .av-hucre { font-size: clamp(12px, 3.6dvh, 20px); }
  .ce-cember { --boy: min(42vw, 78dvh, 300px); }
  .zn-sahne { flex-direction: column; align-items: stretch; } .zn-maskot { display: none; }
  .oy-sahne .oy-maskot, .hz-sahne .oy-maskot, .av-sahne .oy-maskot { width: 50px; height: 84px; }
  .oy-sahne { min-height: 0; }
  .hk-sahne, .hk-ev { height: min(150px, 40dvh); }
  .aa-sahne { max-height: 62dvh; }
  .aa-sahne svg { max-height: 58dvh; }
  .hk-tus { height: 36px; } .hr-yuva, .hr-tas { width: 44px; height: 50px; font-size: 22px; }
  .oy-soru { padding-top: 18px; padding-bottom: 14px; }
  body[data-ekran="giris"] .oy-oyunlar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-ekran="giris"] #uygulama { max-width: 920px; }
  .oy-sonuc { max-width: 640px; margin-inline: auto; }
}

/* Hafıza kartlarında uzun kelime kart genişliğine göre küçülür, bölünmez (Wörterbuch, Schwimmbad) */
.hz-kart { container-type: inline-size; }
.hz-on.de b { font-size: clamp(9px, calc(118cqi / var(--uz, 6)), 18px); overflow-wrap: normal; word-break: keep-all; hyphens: manual; }
.hz-on.tr { font-size: clamp(10px, calc(150cqi / var(--uz, 7)), 16px); }
.hz-on.resim span { font-size: clamp(26px, 52cqi, 58px); }
@media (orientation: landscape) and (max-height: 520px) { .hz-on.de i { font-size: 11px; padding: 3px 0 2px; } }
/* Klavyesi olan cihazda zincir kartlarına sıra numarası */
@media (hover: hover) and (pointer: fine) {
  .zn-secenek { counter-reset: zn; }
  .zn-kart { counter-increment: zn; position: relative; }
  .zn-kart::after { content: counter(zn); position: absolute; top: 2px; right: 5px; font-size: 10px; font-weight: 700; opacity: .45; }
}

/* Ayarlar paneli (oy-ayar) */
.oy-ayar { margin: auto; width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 18px 18px 20px; border: 3px solid var(--cz); border-radius: 22px; background: #fff; color: var(--y1); box-shadow: 0 8px 0 var(--cz); }
.oy-ayar::backdrop { background: rgba(20, 30, 45, .45); }
.oy-ayar-ust { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.oy-ayar-ust h2 { margin: 0; font-size: 22px; font-weight: 800; }
.oy-ayar-satir { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 2px solid var(--yuzey3, #E6E9EF); }
.oy-ayar-satir.dikey { flex-direction: column; align-items: stretch; gap: 8px; }
.oy-ayar-satir b { display: block; font-size: 16px; }
.oy-ayar-satir small { display: block; font-size: 13px; color: var(--y2); line-height: 1.3; }
.oy-anahtar { flex: none; width: 54px; height: 32px; border-radius: 99px; background: #C9CFD8; border: 2px solid var(--cz); position: relative; transition: background .2s; }
.oy-anahtar::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--cz); transition: transform .2s var(--egri); }
.oy-anahtar[aria-checked="true"] { background: #2FA84F; }
.oy-anahtar[aria-checked="true"]::after { transform: translateX(22px); }
.oy-ayar-secim { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.oy-ayar-secim button { min-height: 42px; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--cz); background: #fff; font-weight: 700; font-size: 14px; line-height: 1.2; }
.oy-ayar-secim button[aria-pressed="true"] { background: var(--cz); color: #fff; }
.oy-ayar-sifirla { width: 100%; margin-top: 8px; font-size: 15px; }
.oy-ayar-sifirla.uyari { background: #FFE3E3; border-color: #C62828; color: #9B1C1C; }
.oy-ayar-tamam { width: 100%; margin-top: 10px; }
html[data-hareket="az"] *, html[data-hareket="az"] *::before, html[data-hareket="az"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }

/* ==== Şekiller yenilendi (2026-12-04, sahip: "bazı şekiller biraz dandik kalmış mesela tren ve vagonlar") ==== */
/* Kelime zinciri: buharlı lokomotif, şasili ve parmaklı tekerlekli vagonlar, traversli ray */
.zn-tren { padding: 12px 4px 10px; gap: 12px;
  background: linear-gradient(#1A1A1A, #1A1A1A) left calc(100% - 7px) / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, #8B5A2B 0 9px, transparent 9px 20px) left bottom / 100% 6px no-repeat; }
.zn-lokomotif { width: 84px; height: 67px; background: none; border: 0; border-radius: 0; box-shadow: none; margin-bottom: 0; }
.zn-lokomotif::before, .zn-lokomotif::after { content: none; }
.zn-lokomotif svg { display: block; width: 100%; height: 100%; overflow: visible; }
.zn-buhar { animation: zn-buhar 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes zn-buhar { 0% { opacity: .9; transform: translate(0, 0) scale(.9); } 100% { opacity: 0; transform: translate(4px, -8px) scale(1.25); } }
.zn-vagon { margin-bottom: 17px; border-radius: 8px 8px 6px 6px; box-shadow: none; overflow: visible; }
.zn-vagon::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: -8px; height: 6px; border-radius: 2px; background: #1A1A1A; }
.zn-vagon::before { left: -15px; bottom: -7px; width: 12px; height: 4px; border-radius: 2px; background: #1A1A1A; }
.zn-teker { left: 10px; bottom: -17px; width: 15px; height: 15px; border: 2.5px solid #1A1A1A; z-index: 1;
  background: radial-gradient(circle, #FFCE00 0 2px, #1A1A1A 2px 3.2px, transparent 3.2px), repeating-conic-gradient(#3A3E4E 0 30deg, #6B7084 30deg 60deg); }
.zn-teker.sag { right: 10px; }
.zn-cati { margin: -3px -5px 0; border: 3px solid #1A1A1A; border-radius: 8px 8px 3px 3px; }
.zn-vagon.bos .zn-teker, .zn-vagon.bos::after { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .zn-buhar { animation: none; } }
html[data-hareket="az"] .zn-buhar { animation: none; }

/* Haus'u kur: ahşap çatkılı ev */
.hk-temel { fill: #A9A39A; stroke: #1A1A1A; stroke-width: 2.5; }
.hk-derz { stroke: #7E776D; stroke-width: 2; }
.hk-duvar { fill: #FFF6E2; }
.hk-cizgi { fill: none; stroke: #1A1A1A; stroke-width: 2.5; stroke-linejoin: round; }
.hk-kiris { fill: none; stroke: #6B3E1F; stroke-width: 4.5; stroke-linecap: square; }
.hk-kapi { fill: #8B4A22; stroke: #1A1A1A; stroke-width: 2.5; stroke-linejoin: round; }
.hk-tahta { stroke: #5E3015; stroke-width: 1.6; }
.hk-tokmak { fill: #FFCE00; }
.hk-esik { fill: #A9A39A; stroke: #1A1A1A; stroke-width: 2; }
.hk-pencere { fill: #BFE6FF; stroke: #1A1A1A; stroke-width: 2.5; }
.hk-cerceve { stroke: #1A1A1A; stroke-width: 2; fill: none; }
.hk-saksi { fill: #B4502D; stroke: #1A1A1A; stroke-width: 1.8; }
.hk-cicek { fill: #FF5A8A; stroke: #1A1A1A; stroke-width: 1.2; } .hk-cicek.sari { fill: #FFCE00; }
.hk-cati-siyah, .hk-cati-kirmizi { stroke: #1A1A1A; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hk-cati-siyah { fill: #1A1A1A; } .hk-cati-kirmizi { fill: #C8102E; }
.hk-kiremit { fill: none; stroke: #8E0B20; stroke-width: 2; stroke-linecap: round; }
.hk-baca { fill: #B4502D; stroke: #1A1A1A; stroke-width: 2.5; stroke-linejoin: round; }
.hk-baca-kapak { fill: #1A1A1A; }
.hk-duman { fill: #fff; stroke: #C9CCD6; stroke-width: 1.5; opacity: 0; }
.hk-parca.var .hk-duman { animation: hk-duman 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.hk-parca.var .hk-duman.d2 { animation-delay: .8s; }
@keyframes hk-duman { 0% { opacity: 0; transform: translate(0, 4px) scale(.7); } 30% { opacity: .95; } 100% { opacity: 0; transform: translate(-6px, -10px) scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .hk-parca.var .hk-duman { animation: none; opacity: .9; } }
html[data-hareket="az"] .hk-parca.var .hk-duman { animation: none; opacity: .9; }
