/* ALKİMO — 3. sınıf ek oyunları: Mors Telsizi (ms-), Akış Şeması (af-), Parola Kalesi (pw-), Güvenli mi? (gv-), Robot Ekibi (pl-) */
.k3 { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); padding: 16px; box-sizing: border-box; overflow: auto; color: var(--ink); }
.k3.narrow { flex-direction: column; justify-content: flex-start; gap: 14px; }
.k3-board { flex: 0 1 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 760px; }
.k3-pad { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 270px; box-sizing: border-box; padding: 16px; background: #fff; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 7px 0 var(--ink); }
.k3-pad h4 { margin: 0; font-size: 22px; text-align: center; }
.k3-h { margin: 0; font-size: 28px; text-align: center; }
.k3-tip { margin: 0; min-height: 1.3em; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ink-soft); text-align: center; max-width: 560px; }
.k3-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.k3-opts.col { flex-direction: column; flex-wrap: nowrap; }
.k3-btn { min-height: 56px; padding: 8px 18px; border: 4px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: 0 5px 0 var(--ink); color: var(--ink); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.k3-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.k3-btn.big { min-width: 120px; min-height: 76px; font-size: 30px; }
.k3-btn.go { background: #2EC27E; color: #fff; }
.k3-btn.ok { background: #DFF7EA; }
.k3-btn.key { min-width: 58px; min-height: 58px; padding: 4px; font-size: 26px; }
.k3-btn.tile { min-height: 52px; font-size: 22px; background: #FFF1C2; }
@keyframes k3-pop { 0% { transform: scale(.85); } 70% { transform: scale(1.05); } 100% { transform: scale(1); } }
.k3-pop { animation: k3-pop .35s ease; }
@media (hover: hover) { .k3-btn:hover, .pl-card:hover { filter: brightness(.97); } }

/* Mors */
.ms-table { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.ms-row { display: flex; align-items: center; gap: 8px; padding: 3px 8px; border-radius: 10px; background: #FFF4E0; }
.ms-row b { width: 22px; font-size: 20px; }
.ms-row span { font-size: 14px; letter-spacing: 1px; }
.ms-code { min-width: 260px; padding: 18px 26px; border: 5px solid var(--ink); border-radius: 24px; background: #23214A; color: #7DF9FF; box-shadow: 0 7px 0 #0B0822; font-size: 56px; letter-spacing: 6px; text-align: center; }
.ms-code.small { min-width: 200px; font-size: 40px; padding: 10px 20px; }
.ms-msg { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ms-col { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 12px; border: 4px solid var(--ink); border-radius: 18px; background: #fff; }
.ms-col span { font-size: 22px; letter-spacing: 2px; color: #23214A; }
.ms-col.now { background: #FFF1C2; }
.ms-col.ok { background: #DFF7EA; }
.ms-slot { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 3px dashed var(--ink); border-radius: 12px; font-size: 28px; }
.ms-slot.now { background: #FFC531; border-style: solid; }
.ms-slot.ok { background: #DFF7EA; border-style: solid; }
.ms-big { font-size: 40px; }
.ms-sent { min-height: 26px; }
.ms-keys { display: grid; grid-template-columns: repeat(6, auto); gap: 8px; }

/* Akış şeması */
.af-chart { display: flex; flex-direction: column; align-items: center; }
.af-n { padding: 10px 18px; border: 4px solid var(--ink); background: #fff; font-size: 19px; font-weight: 700; text-align: center; box-shadow: 0 4px 0 var(--ink); }
.af-n.start { border-radius: 40px; background: #2EC27E; color: #fff; }
.af-n.in { background: #DDEFFF; transform: skewX(-12deg); }
.af-n.act { border-radius: 10px; background: #FFF1C2; }
.af-n.dec { position: relative; padding: 18px 26px; border-radius: 14px; background: #FFE3E0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border: 0; box-shadow: none; outline: none; min-width: 230px; padding: 30px 40px; }
.af-n.dec.small { min-width: 180px; padding: 24px 30px; font-size: 16px; }
.af-ar { position: relative; width: 4px; height: 26px; margin: 2px 0; background: var(--ink); }
.af-ar::after { content: ''; position: absolute; left: -7px; bottom: -6px; border: 9px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.af-ar small { position: absolute; left: 10px; top: 0; font-size: 15px; font-weight: 700; white-space: nowrap; }
.af-two { display: flex; gap: 22px; align-items: flex-start; }
.af-br { display: flex; flex-direction: column; align-items: center; }
.af-back { margin-top: 4px; font-weight: 700; color: #E5701A; }
.af-q { padding: 10px; border-radius: 14px; background: #FFF4E0; font-size: 18px; font-weight: 700; text-align: center; }

/* Parola */
.pw-show { min-width: 300px; max-width: 100%; padding: 16px 24px; border: 5px solid var(--ink); border-radius: 22px; background: #23214A; color: #fff; box-shadow: 0 7px 0 #0B0822; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 40px; text-align: center; word-break: break-all; }
.k3-btn.weak { background: #FFE1DE; }
.k3-btn.strong { background: #DFF7EA; }
.pw-rule { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: #FFF4E0; font-size: 16px; }
.pw-rule span { font-size: 22px; }
.pw-meter { display: flex; gap: 6px; }
.pw-meter i { width: 44px; height: 16px; border: 3px solid var(--ink); border-radius: 8px; background: #fff; }
.pw-meter i.r { background: #FF5A4E; } .pw-meter i.y { background: #FFC531; } .pw-meter i.g { background: #2EC27E; }
.pw-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 620px; }
.pw-checks { display: flex; flex-direction: column; gap: 6px; }
.pw-c { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #9C9AB8; }
.pw-c i { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 3px solid currentColor; border-radius: 50%; font-style: normal; }
.pw-c.on { color: #1E9E63; }

/* Güvenli mi? */
.gv-card { max-width: 600px; padding: 26px 30px; border: 5px solid var(--ink); border-radius: 26px; background: #fff; box-shadow: 0 8px 0 var(--ink); font-size: 28px; font-weight: 700; line-height: 1.3; text-align: center; }
.gv-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.k3-btn.gv-b { min-width: 170px; min-height: 76px; font-size: 22px; }
.k3-btn.gv-b.ok { background: #DFF7EA; } .k3-btn.gv-b.ask { background: #FFF1C2; } .k3-btn.gv-b.no { background: #FFE1DE; }

/* Robot Ekibi */
.pl-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 700px; }
.pl-card { display: flex; align-items: center; justify-content: center; gap: 8px; height: 62px; padding: 0 10px; white-space: nowrap; box-sizing: border-box; border: 4px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 0 5px 0 var(--ink); color: var(--ink); font: inherit; font-size: 18px; cursor: pointer; touch-action: manipulation; }
.pl-card span { font-size: 28px; line-height: 1; }
.pl-card.r1 { background: #DDEFFF; } .pl-card.r2 { background: #FFE3E0; }
.pl-lanes { display: flex; flex-direction: column; gap: 14px; }
.pl-lane { display: flex; align-items: center; gap: 12px; }
.pl-bot { width: 52px; flex: none; } .pl-bot svg { width: 100%; height: auto; display: block; }
.pl-track { position: relative; }
.pl-bar { display: flex; height: 54px; box-sizing: border-box; padding: 3px; border: 4px solid var(--ink); border-radius: 14px; background: #fff; }
.pl-lane:nth-child(1) .pl-seg { background: #7DD3FC; } .pl-lane:nth-child(2) .pl-seg { background: #FF9E94; }
.pl-seg { display: flex; align-items: center; justify-content: center; height: 100%; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 8px; font-size: 24px; line-height: 1; }
.pl-limit { position: absolute; top: -10px; bottom: -10px; width: 0; border-left: 4px dashed #E5483D; }
.pl-tot { min-width: 64px; font-size: 22px; }
.pl-tot.over { color: #E5483D; }
@keyframes pl-run { 0% { box-shadow: inset 0 0 0 0 #2EC27E; } 100% { box-shadow: inset 600px 0 0 0 rgba(46,194,126,.25); } }
.pl-lanes.run .pl-bar { animation: pl-run 1.2s linear; }
.pl-big { font-size: 34px; font-weight: 700; text-align: center; }

/* büyük akıllı tahta */
.k3.big .k3-board { max-width: 1100px; gap: 22px; }
.k3.big .k3-pad { width: 340px; }
.k3.big .k3-h { font-size: 36px; }
.k3.big .k3-tip { font-size: 21px; max-width: 760px; }
.k3.big .k3-btn { min-height: 70px; font-size: 26px; }
.k3.big .k3-btn.big { min-width: 160px; min-height: 96px; font-size: 38px; }
.k3.big .k3-btn.key { min-width: 76px; min-height: 76px; font-size: 34px; }
.k3.big .ms-code { font-size: 76px; }
.k3.big .af-n { font-size: 24px; }
.k3.big .gv-card { max-width: 860px; font-size: 36px; }
.k3.big .k3-btn.gv-b { min-width: 230px; min-height: 96px; font-size: 28px; }
.k3.big .pw-show { font-size: 54px; }
.k3.big .pl-card { height: 80px; font-size: 22px; }
.k3.big .pl-bar { height: 72px; }

/* telefon */
.k3.narrow .k3-pad { width: min(100%, 360px); padding: 12px; }
.k3.narrow .k3-h { font-size: 22px; }
.k3.narrow .ms-code { font-size: 40px; min-width: 0; }
.k3.narrow .ms-keys { grid-template-columns: repeat(6, 1fr); }
.k3.narrow .k3-btn.key { min-width: 44px; min-height: 48px; font-size: 22px; }
.k3.narrow .af-n { font-size: 15px; padding: 8px 10px; }
.k3.narrow .af-n.dec { min-width: 160px; padding: 22px 24px; }
.k3.narrow .af-two { gap: 8px; }
.k3.narrow .gv-card { font-size: 21px; padding: 18px; }
.k3.narrow .pw-show { font-size: 26px; min-width: 0; }
.k3.narrow .k3-btn.gv-b { min-width: 0; flex: 1 1 100%; }
