:root{color:#2a2147;background:#f2ecff;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.45;--violet:#5142aa;--edge:#d6c9ef;--paper:#fffdfc;--green:#256342}
*{box-sizing:border-box}body{margin:0;min-width:0}a{color:inherit}button{font:inherit;color:inherit;cursor:pointer}a,button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #39288f;outline-offset:3px}
.top{min-height:60px;display:flex;align-items:center;gap:14px;padding:8px max(16px,calc((100vw - 760px)/2));background:var(--paper);border-bottom:1px solid var(--edge)}.top .kp-brand,.back{min-height:44px}.back{display:grid;place-items:center;min-width:44px;border-radius:14px;background:#eee7fa;text-decoration:none;font-size:1.4rem}
.shell{width:min(100%,760px);margin:auto;padding:clamp(12px,3vw,26px) clamp(12px,4vw,25px) 25px;text-align:center}.shell h1{font-size:clamp(1.35rem,4vw,2rem);line-height:1.13;margin:0 0 12px}.levels,.progress{display:flex;justify-content:center;gap:9px}.levels a{display:grid;place-items:center;min-width:48px;min-height:46px;font-weight:750;border:1px solid var(--edge);text-decoration:none;border-radius:15px;background:#fbf9ff}.levels a[aria-current="true"]{color:white;background:var(--violet);border-color:var(--violet)}.progress{margin:14px 0}.progress span{width:26px;height:7px;border-radius:99px;background:#d6c9ef}.progress .done{background:#39765b}
.game{min-height:250px;max-width:592px;margin:auto;padding:clamp(12px,3vw,22px);background:var(--paper);border:1px solid var(--edge);border-radius:26px;box-shadow:0 6px 0 #e1d6f6}.game:focus{outline:none}.game h2{margin:3px 0 12px;line-height:1.14;font-size:clamp(1.85rem,7vw,3.8rem);overflow-wrap:anywhere}.game h2:focus{outline:none}.game .phrase{font-size:clamp(1.5rem,5.5vw,2.4rem)}
.demo,.picture,.part,.round-button,.action{border:2px solid #c9b9e8;background:#f5efff;border-radius:18px}.demo{display:grid;place-items:center;gap:2px;width:min(100%,285px);min-height:160px;margin:auto;padding:10px 12px 12px;box-shadow:0 5px 0 #d9c9f3}.demo .illustration{font-size:clamp(3.2rem,14vw,5.4rem)}.demo strong{font-size:clamp(2rem,8vw,3.25rem);line-height:1.1}.demo .go{display:grid;place-items:center;min-height:44px;min-width:58px;color:white;background:var(--violet);border-radius:14px;font-size:1.65rem;line-height:1}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.picture{min-height:clamp(112px,27vw,174px);padding:8px 4px;display:grid;place-items:center}.illustration{display:inline-flex;align-items:center;justify-content:center;gap:.12em;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:clamp(2.6rem,11vw,5rem);line-height:1.06}.illustration.pair{font-size:clamp(1.7rem,6.6vw,3.65rem)}.illustration.stacked{flex-direction:column}.picture:hover,.part:hover,.demo:hover,.round-button:hover{background:#efe5ff}.answer-right,.answer-right:hover{background:#e5f6e8;border-color:#427755;color:var(--green)}.answer-wrong,.answer-wrong:hover{border-color:#a66b35;background:#fff2df}.hinted{outline:3px dashed var(--violet);outline-offset:-6px}.component-art{margin:4px 0;font-size:clamp(2.55rem,9vw,4.2rem)}
.tray{display:flex;justify-content:center;gap:8px;margin:6px 0 10px}.slot{min-width:65px;min-height:46px;display:grid;place-items:center;border-bottom:3px solid #a48cca;font-weight:750;font-size:1.55rem}.parts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.part{min-height:55px;font-size:clamp(1.35rem,6vw,2rem);font-weight:750}.part[disabled]{opacity:.45;cursor:default}
.feedback{display:flex;justify-content:center;min-height:48px;align-items:center;gap:8px;margin-top:8px}.round-button,.action{min-height:48px;min-width:54px;padding:6px 13px;font-weight:750;text-decoration:none;display:inline-grid;place-items:center}.round-button{font-size:1.4rem;line-height:1}.action.primary,.round-button.primary{color:white;background:var(--violet);border-color:var(--violet)}.action.primary:hover,.round-button.primary:hover{background:#43349a}.outcome{font-size:1.65rem;font-weight:750}.badge{display:block;font-size:clamp(2.75rem,13vw,4.8rem);line-height:1.05}.end-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}.parents{max-width:592px;margin:16px auto 0;text-align:left;color:#524969}.parents summary{cursor:pointer;min-height:44px;display:list-item;padding:9px 5px;font-weight:650}.parents p{margin:5px 5px 12px}.skip,.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip:focus{width:auto;height:auto;clip-path:none;z-index:2;background:white;padding:10px;left:8px;top:8px}
.inside-box{display:grid;place-items:center;width:clamp(56px,16vw,100px);height:clamp(52px,14vw,82px);border:4px solid #aa6d43;border-top-width:1px;border-radius:4px 4px 11px 11px;background:#edbd82;box-shadow:inset 0 -7px #d69458;font-size:clamp(1.7rem,6.6vw,3.2rem)}
.skip:focus{min-height:44px}
@media(max-height:590px) and (orientation:landscape){.top{min-height:48px;padding-block:2px}.shell{padding-top:8px}.shell h1{margin-bottom:5px}.progress{margin:6px 0}.game{min-height:180px;padding:8px}.picture{min-height:84px}.demo .illustration{font-size:3.1rem}.game h2{margin-bottom:5px}.parents{margin-top:7px}}
