/* ALKİMO — dil bölümleri: English ve Deutschland düğmeleri, bölüm sayfaları */
/* ana sayfa: dil düğmeleri en üstte, ülke saatlerinin üstünde */
.lang-top { position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px clamp(14px, 2.6vw, 32px); margin: 14px 0 0; }
.hero .lang-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px clamp(14px, 2.6vw, 32px); }
.lang-btn { gap: 10px; padding: 8px 22px 8px 12px; font-size: clamp(18px, 1.7vw, 22px); }
.lang-btn.lang-en { background: #DDEFFF; }
.lang-btn.lang-de { background: #FFF1C2; }
.lang-flag { display: inline-flex; flex: none; border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; line-height: 0; background: #fff; }
.lang-btn .lang-flag svg { display: block; height: 24px; }
.lang-btn .lang-flag.uk svg { width: 48px; }
.lang-btn .lang-flag.de svg { width: 40px; }

/* bölüm sayfası */
.lang-group .group-head h1 { display: flex; align-items: center; gap: 16px; }
.lang-group .group-head .lang-flag { border-width: 4px; border-radius: 10px; box-shadow: 0 4px 0 var(--ink); }
.lang-group .group-head .lang-flag svg { display: block; height: 44px; }
.lang-group .group-head .lang-flag.uk svg { width: 88px; }
.lang-group .group-head .lang-flag.de svg { width: 73px; }
.lang-more { margin: 28px 0 0; text-align: center; font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: var(--ink-soft); }

/* ---------- Which Way? ---------- */
.ww { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 44px); padding: 16px; box-sizing: border-box; overflow: auto; }
.ww.narrow { flex-direction: column; justify-content: flex-start; gap: 14px; }
.ww-board { position: relative; flex: none; box-sizing: content-box; border: 5px solid var(--ink); border-radius: 18px; box-shadow: 0 8px 0 var(--ink);
  background-color: #F4FBF9; background-image: linear-gradient(#CDEFE8 2px, transparent 2px), linear-gradient(90deg, #CDEFE8 2px, transparent 2px); overflow: hidden; }
.ww-item { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; transition: transform .35s ease; }
.ww-in { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ww-bot { z-index: 3; }
.ww-bot svg { width: 80%; height: 80%; }
.ww-rock svg { width: 78%; height: 78%; }
.ww-goal svg { width: 72%; height: 72%; animation: ww-pulse 1.4s ease-in-out infinite; }
@keyframes ww-pulse { 50% { transform: scale(1.12) rotate(8deg); } }
.ww-mark .emoji { font-size: 34px; line-height: 1; }
.ww-mark small { margin-top: 2px; padding: 0 6px; font-size: 13px; font-weight: 700; background: #fff; border: 2px solid var(--ink); border-radius: 8px; line-height: 1.3; }
.ww-mark.on .ww-in { background: #FFF1C2; border-radius: 12px; box-shadow: inset 0 0 0 4px #FFC531; }
.ww-pad { display: flex !important; flex-direction: column; align-items: center; gap: 12px; padding: 16px 18px !important; flex: none; }
.ww-pad h4 { margin: 0; font-size: 22px; }
.ww-dpad { display: grid; grid-template-columns: repeat(3, 96px); grid-template-rows: repeat(3, 96px); gap: 8px; }
.ww-dpad .k-n { grid-column: 2; grid-row: 1; }
.ww-dpad .k-w { grid-column: 1; grid-row: 2; }
.ww-dpad .k-e { grid-column: 3; grid-row: 2; }
.ww-dpad .k-s { grid-column: 2; grid-row: 3; }
.ww-mid { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: center; }
.ww-mid svg { width: 84px; height: 84px; }
.ww-key { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; box-sizing: border-box; border: 4px solid var(--ink); border-radius: 22px; background: #fff; box-shadow: 0 6px 0 var(--ink); color: var(--ink); font: inherit; font-weight: 700; font-size: 17px; letter-spacing: .5px; cursor: pointer; }
.ww-key:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.ww-key .ww-arr svg { width: 46px; height: 46px; display: block; }
.ww-key.word-only { font-size: 19px; background: #DDEFFF; }
.ww-words { display: grid; grid-template-columns: repeat(2, 150px); gap: 14px; }
.ww-words .ww-key { height: 72px; font-size: 24px; }
.ww-show { width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; border: 5px solid var(--ink); border-radius: 28px; background: #FFF1C2; box-shadow: 0 6px 0 var(--ink); }
.ww-show svg { width: 112px; height: 112px; transition: transform .25s ease; }
.ww-prog { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; width: 310px; min-height: 52px; box-sizing: border-box; padding: 8px; border: 3px dashed #9C9AB8; border-radius: 14px; background: #F4F3FB; }
.ww-chip { display: inline-flex; align-items: center; padding: 3px 9px; border: 3px solid var(--ink); border-radius: 10px; background: #DDEFFF; font-weight: 700; font-size: 15px; }
.ww-chip.on { background: #FFC531; }
.ww-chip.bad { background: #FF5A4E; color: #fff; }
.ww-hint { color: var(--ink-soft); font-weight: 600; font-size: 15px; padding: 6px 4px; }
.ww-row { display: flex; gap: 10px; }
.ww.narrow .ww-dpad { grid-template-columns: repeat(3, 84px); grid-template-rows: repeat(3, 76px); gap: 6px; }
.ww.narrow .ww-key { font-size: 13px; letter-spacing: 0; border-radius: 18px; }
.ww.narrow .ww-key.word-only { font-size: 14px; }
.ww.narrow .ww-key .ww-arr svg { width: 34px; height: 34px; }
.ww.narrow .ww-mid svg { width: 62px; height: 62px; }
.ww.narrow .ww-show { width: 110px; height: 110px; }
.ww.narrow .ww-show svg { width: 80px; height: 80px; }
.ww.narrow .ww-words { grid-template-columns: repeat(2, 130px); }
.ww.narrow .ww-words .ww-key { height: 58px; font-size: 20px; }

/* ---------- Paint Robot / Malroboter ---------- */
.cr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 44px); padding: 16px; box-sizing: border-box; overflow: auto; }
.cr.narrow { flex-direction: column; justify-content: flex-start; gap: 14px; }
.cr-board { display: flex !important; align-items: center; justify-content: center; padding: 18px 22px !important; flex: none; }
.cr-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cr-label { font-weight: 700; font-size: 16px; color: var(--ink-soft); margin-top: 4px; }
.cr-tiles { display: flex; border: 4px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; }
.cr-tile { position: relative; box-sizing: border-box; border-right: 3px dashed #CFCDE2; background: #F4F3FB; transition: background .25s ease; }
.cr-tile:last-child { border-right: 0; }
.cr-tile.on, .cr-tiles.goal .cr-tile { border-right: 3px solid var(--ink); }
.cr-tile.on:last-child, .cr-tiles.goal .cr-tile:last-child { border-right: 0; }
.cr-tile.bad::after { content: '\2715'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; color: #fff; text-shadow: 0 0 4px #23214A, 0 0 2px #23214A; }
.cr-track { position: relative; }
.cr-bot { position: absolute; left: 0; top: 0; display: flex; align-items: flex-end; justify-content: center; transition: transform .3s ease; z-index: 2; }
.cr-in { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 100%; }
.cr-in svg { width: 86%; height: 100%; }
@keyframes cr-pop { 0% { transform: scale(.6); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
.cr-pop { animation: cr-pop .3s ease; }
.cr-pad { display: flex !important; flex-direction: column; align-items: center; gap: 12px; padding: 16px 18px !important; flex: none; }
.cr-pad h4 { margin: 0; font-size: 22px; }
.cr-pots { display: grid; grid-template-columns: repeat(2, 128px); gap: 12px; }
.cr-pots.six { grid-template-columns: repeat(3, 118px); }
.cr-pot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 8px 6px; box-sizing: border-box; border: 4px solid var(--ink); border-radius: 22px; background: #fff; box-shadow: 0 6px 0 var(--ink); color: var(--ink); font: inherit; font-weight: 700; font-size: 18px; letter-spacing: .5px; cursor: pointer; touch-action: manipulation; }
.cr-pot:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.cr-pot.word-only { min-height: 72px; font-size: 21px; background: #F2F1FA; }
.cr-pot.blob-only { min-height: 100px; }
.cr-blob { display: block; width: 52px; height: 52px; box-sizing: border-box; border-radius: 50%; border: 4px solid var(--ink); }
.cr-pot.blob-only .cr-blob { width: 64px; height: 64px; }
.cr-show { width: 150px; height: 150px; box-sizing: border-box; border-radius: 50%; border: 6px solid var(--ink); box-shadow: 0 6px 0 var(--ink); transition: background .25s ease; }
.cr-prog { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; width: 330px; min-height: 52px; box-sizing: border-box; padding: 8px; border: 3px dashed #9C9AB8; border-radius: 14px; background: #F4F3FB; }
.cr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 3px solid var(--ink); border-radius: 10px; background: #fff; font-weight: 700; font-size: 15px; }
.cr-chip i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.cr-chip.on { background: #FFC531; }
.cr-hint { color: var(--ink-soft); font-weight: 600; font-size: 15px; padding: 6px 4px; }
.cr-row { display: flex; gap: 10px; align-items: center; }
.cr-times { display: flex; align-items: center; gap: 8px; }
.cr-rep { font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.cr-time { min-width: 58px; height: 52px; box-sizing: border-box; border: 4px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 0 4px 0 var(--ink); color: var(--ink); font: inherit; font-weight: 700; font-size: 20px; cursor: pointer; touch-action: manipulation; }
.cr-time.on { background: #FFC531; }
.cr-time:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.cr-mix { display: flex; align-items: center; gap: 14px; }
.cr-big { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; }
.cr-big .cr-blob { border-width: 5px; }
.cr-op { font-size: 44px; }
.cr-bowl { display: flex; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 12px 12px 50% 50%; border: 5px solid var(--ink); background: #fff; box-shadow: 0 6px 0 var(--ink); font-size: 48px; font-weight: 700; transition: background .4s ease; }
@media (hover: hover) { .cr-pot:hover, .cr-time:hover { filter: brightness(.96); } }
.cr.big .cr-pots { grid-template-columns: repeat(2, 160px); gap: 14px; }
.cr.big .cr-pots.six { grid-template-columns: repeat(3, 150px); }
.cr.big .cr-pot { min-height: 120px; font-size: 22px; }
.cr.big .cr-pot.word-only { min-height: 92px; font-size: 26px; }
.cr.big .cr-blob { width: 66px; height: 66px; }
.cr.big .cr-pot.blob-only .cr-blob { width: 80px; height: 80px; }
.cr.big .cr-show { width: 190px; height: 190px; }
.cr.big .cr-pad h4 { font-size: 28px; }
.cr.big .cr-prog { width: 450px; min-height: 60px; }
.cr.big .cr-chip { font-size: 18px; }
.cr.big .cr-row .btn, .cr.big .cr-time { min-height: 62px; font-size: 22px; }
.cr.big .cr-rep { font-size: 22px; }
.cr.big .cr-big { font-size: 26px; }
.cr.big .cr-op { font-size: 60px; }
.cr.narrow .cr-pots { grid-template-columns: repeat(2, 120px); gap: 8px; }
.cr.narrow .cr-pots.six { grid-template-columns: repeat(3, 100px); }
.cr.narrow .cr-pot { min-height: 74px; font-size: 14px; letter-spacing: 0; }
.cr.narrow .cr-pot.word-only { min-height: 56px; font-size: 15px; }
.cr.narrow .cr-blob { width: 40px; height: 40px; }
.cr.narrow .cr-pot.blob-only .cr-blob { width: 48px; height: 48px; }
.cr.narrow .cr-show { width: 100px; height: 100px; }
.cr.narrow .cr-prog { width: 300px; }
.cr.narrow .cr-mix { gap: 8px; }
.cr.narrow .cr-op { font-size: 30px; }
.cr.narrow .cr-big { font-size: 15px; }

/* dokunmatik akıllı tahta */
body.page-lang .game, body.page-lang .lang-group { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body.page-lang .btn, body.page-lang .card, .ww-key, .lang-btn { touch-action: manipulation; }
@media (hover: hover) { .ww-key:hover { background: #F2FBF9; } }
.ww.big .ww-dpad { grid-template-columns: repeat(3, 124px); grid-template-rows: repeat(3, 124px); gap: 10px; }
.ww.big .ww-key { font-size: 21px; border-radius: 26px; }
.ww.big .ww-key.word-only { font-size: 23px; }
.ww.big .ww-key .ww-arr svg { width: 60px; height: 60px; }
.ww.big .ww-mid svg { width: 108px; height: 108px; }
.ww.big .ww-words { grid-template-columns: repeat(2, 190px); gap: 16px; }
.ww.big .ww-words .ww-key { height: 92px; font-size: 30px; }
.ww.big .ww-show { width: 190px; height: 190px; }
.ww.big .ww-show svg { width: 142px; height: 142px; }
.ww.big .ww-pad h4 { font-size: 28px; }
.ww.big .ww-prog { width: 410px; min-height: 60px; }
.ww.big .ww-chip { font-size: 18px; }
.ww.big .ww-row .btn { min-height: 62px; font-size: 22px; padding: 8px 28px; }
.ww.big .ww-mark .emoji { font-size: 50px; }
.ww.big .ww-mark small { font-size: 16px; }

@media (max-width: 760px) {
  .hero .lang-row h1 { order: -1; flex-basis: 100%; justify-content: center; }
  .hero .lang-row { gap: 12px 10px; }
  .lang-btn { min-height: 48px; gap: 8px; padding: 5px 14px 5px 8px; font-size: 17px; border-width: 3px; }
  .lang-btn .lang-flag { border-width: 2px; border-radius: 5px; }
  .lang-btn .lang-flag svg { height: 18px; }
  .lang-btn .lang-flag.uk svg { width: 36px; }
  .lang-btn .lang-flag.de svg { width: 30px; }
  .lang-group .group-head .lang-flag svg { height: 30px; }
  .lang-group .group-head .lang-flag.uk svg { width: 60px; }
  .lang-group .group-head .lang-flag.de svg { width: 50px; }
}
