.kg-overlay{position:fixed!important;inset:0!important;z-index:100000150!important;width:100%!important;height:100dvh!important;display:flex;flex-direction:column;overflow:hidden;background:#0e2445;color:#fff;font-family:Nunito,system-ui,sans-serif;box-sizing:border-box;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)}
.kg-overlay *{box-sizing:border-box}.kg-overlay button,.kg-overlay select,.kg-overlay input{font:inherit}.kg-overlay button{cursor:pointer;touch-action:manipulation}.kg-overlay button:disabled{cursor:default}.kg-overlay button:focus-visible,.kg-overlay input:focus-visible,.kg-overlay select:focus-visible{outline:4px solid #ffe276;outline-offset:3px}
.kg-header{display:flex;align-items:center;gap:12px;padding:9px 18px;background:linear-gradient(100deg,#123e7c,#0e2852);border-bottom:3px solid #47bbff;flex-shrink:0}.kg-header>div{flex:1}.kg-header small{font-size:10px;letter-spacing:1.5px;color:#addefa;font-weight:900}.kg-header h2{margin:0;font-size:clamp(22px,3vw,34px);font-weight:1000;line-height:1.1}.kg-header h2 span{color:#ffdf59}.kg-header button{border:1px solid #ffffff40;border-radius:14px;background:#ffffff15;color:white;min-width:42px;min-height:42px;font-size:23px}.kg-header .kg-back{font-size:36px}
.kg-main{flex:1;min-height:0;overflow:hidden}.kg-setup{height:100%;display:grid;grid-template-columns:1fr 1fr;max-width:1100px;margin:auto;align-items:center;gap:30px;padding:24px;overflow:auto}.kg-preview{align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;text-align:center;padding:25px;background:linear-gradient(0deg,#0b3b31f2,transparent 80%),url('games-assets/kelime-golu-stadium-v1.webp') center/cover;border:2px solid #ffffff40;border-radius:28px;min-height:250px}.kg-preview>div{font-size:70px;filter:drop-shadow(0 5px 5px #0018)}.kg-preview h3{font-size:28px;margin:10px 0}.kg-preview p{font-size:16px;line-height:1.65}.kg-form{display:flex;flex-direction:column;gap:12px;max-width:520px;width:100%;margin:auto}.kg-form h3{font-size:24px;margin:0;color:#ffe780}.kg-rules{color:#c9dff5;font-size:14px;line-height:1.65;margin:0}.kg-form label{font-size:14px;font-weight:900}.kg-form select,.kg-form input:not([type=checkbox]){display:block;width:100%;min-width:0;padding:10px;margin-top:6px;border:2px solid #779ac4;border-radius:12px;color:#16365d;background:white}.kg-names{display:grid;grid-template-columns:1fr 1fr;gap:12px}.kg-form fieldset{border:1px solid #ffffff40;border-radius:15px;padding:12px}.kg-form legend{font-weight:900;color:#b7dfff}.kg-units{display:flex;flex-wrap:wrap;gap:7px;max-height:135px;overflow:auto}.kg-unit{background:#ffffff15;padding:8px;border-radius:10px;white-space:nowrap;cursor:pointer}.kg-unit:has(input:checked){background:#e2fbe8;color:#174c35}.kg-unit:has(input:disabled){opacity:.4;cursor:default}.kg-unit input{accent-color:#25b969;margin-right:5px}.kg-primary{border:0;border-radius:16px;background:linear-gradient(#ffdf59,#ffb52e);box-shadow:0 4px 0 #b86a08;color:#453012;padding:13px 20px;font-weight:1000!important;font-size:18px!important}.kg-primary:disabled{opacity:.5}.kg-form [data-status]{min-height:20px;color:#ffd5a9;font-size:14px;margin:0}
.kg-pitches{height:100%;display:flex;gap:3px;background:linear-gradient(#39b6ff,#ffc76b)}.kg-player{min-width:0;flex:1;display:flex;flex-direction:column;position:relative;background:#0b4433}.kg-player-head{display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap;padding:10px 14px;min-height:58px;border-bottom:3px solid #60bfff;background:linear-gradient(#147ce6,#1747aa);font-weight:1000;font-size:clamp(13px,2vw,20px)}.kg-player-head>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:35%}.kg-player-head strong{padding:5px 13px;border-radius:12px;background:#052454;color:#ffdf69;font-size:clamp(18px,2.5vw,27px)}.kg-player-head [data-progress],.kg-player-head [data-clock]{font-size:13px}.kg-player:nth-child(2) .kg-player-head{background:linear-gradient(#ff9d25,#bc5109);border-color:#ffc868}.kg-player:nth-child(2) .kg-player-head strong{background:#76300c}.kg-pitch{flex:1;min-height:0;position:relative;isolation:isolate;background:#2c8232 url('games-assets/kelime-golu-stadium-v1.webp') center/100% 100% no-repeat;container-type:size;overflow:hidden}.kg-goal-targets{position:absolute;inset:0}.kg-target{position:absolute;width:30%;min-height:14%;max-height:23%;padding:8px 6px;border-radius:clamp(10px,2cqw,20px);border:3px solid #ffffffdc;color:white;font-size:clamp(14px,3.5cqw,30px)!important;font-weight:1000!important;line-height:1.2;overflow-wrap:anywhere;text-shadow:0 2px 3px #0006;box-shadow:0 0 18px var(--kg-target-color),inset 0 1px 8px #fff6;transition:filter .2s,background .2s;z-index:2;background:var(--kg-target-color);-webkit-tap-highlight-color:transparent}.kg-target:hover:not(:disabled){filter:brightness(1.15)}.kg-target-0{left:10%;top:27%;--kg-target-color:#ed3a54e6}.kg-target-1{right:10%;top:27%;--kg-target-color:#13ad71e6}.kg-target-2{left:10%;top:49%;--kg-target-color:#eea921e6}.kg-target-3{right:10%;top:49%;--kg-target-color:#8837e1e6}.kg-target.kg-correct{background:#10ab51;box-shadow:0 0 28px #9dffb7;border-color:#c0ffcf}.kg-target.kg-wrong{background:#ac263f;filter:saturate(.65)}
.kg-ball{position:absolute;bottom:4%;left:50%;width:clamp(96px,24cqw,210px);aspect-ratio:1;translate:-50% 0;filter:drop-shadow(0 12px 8px #08250999);z-index:4;display:grid;place-items:center;will-change:transform;pointer-events:none}.kg-ball svg{position:absolute;inset:0;width:100%;height:100%}.kg-ball b{position:relative;font-size:clamp(14px,4cqw,33px);line-height:1.1;max-width:88%;text-align:center;color:#122b53;font-weight:1000;overflow-wrap:anywhere;background:#ffffffe8;border-radius:12px;padding:6px 4px;box-shadow:0 1px 5px #fff8}.kg-ball.kg-flying{transition:transform .55s cubic-bezier(.15,.65,.3,1)}.kg-ball[hidden]{display:none}.kg-feedback{position:absolute;left:8%;right:8%;bottom:30%;z-index:6;text-align:center;font-weight:1000;font-size:clamp(15px,3cqw,26px);color:#fff6a5;text-shadow:0 2px 4px #000;pointer-events:none;padding:8px;border-radius:15px}.kg-feedback:not(:empty){background:#0b294be8;border:2px solid #ffffff70}.kg-goal{animation:kgNet .5s ease}.kg-shot-glove{position:absolute;z-index:5;font-size:clamp(38px,9cqw,70px);translate:-50% -50%;filter:drop-shadow(0 4px 4px #0007);animation:kgSave .3s ease-out}.kg-help{text-align:center;font-size:13px;font-weight:900;background:#0c3153;color:#e1f5ff;padding:7px}.kg-results{height:100%;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:16px;padding:25px;background:radial-gradient(ellipse at top,#24578c,#0e2445)}.kg-trophy{font-size:75px}.kg-results h3{font-size:32px;margin:0;color:#ffe276}.kg-results p{font-size:14px}.kg-result-grid{display:flex;gap:20px;width:min(650px,100%)}.kg-result-grid article{flex:1;min-width:0;padding:24px 12px;border:2px solid #548eea;border-radius:22px;background:#ffffff10}.kg-result-grid article:nth-child(2){border-color:#ffb048}.kg-result-grid h4{font-size:20px;margin:0 0 12px;overflow-wrap:anywhere}.kg-result-grid strong{font-size:30px;color:#ffe276}.kg-results [data-done]{background:transparent;color:#c3ddf7;border:1px solid #ffffff50;padding:10px 20px;border-radius:12px}
#kelimeGoluSolo .gg-art,#kelimeGoluDuo .gg-art{background:url('games-assets/kelime-golu-stadium-v1.webp') center/cover!important;border-radius:16px;position:relative;overflow:hidden}#kelimeGoluSolo .gg-art:after,#kelimeGoluDuo .gg-art:after{content:'⚽';position:absolute;right:8%;bottom:2%;font-size:50px;filter:drop-shadow(0 3px 3px #0008)}
@keyframes kgNet{30%{filter:brightness(1.3)}60%{filter:brightness(1)}}@keyframes kgSave{from{scale:.3;rotate:-35deg}to{scale:1;rotate:0deg}}
@media(max-width:650px){.kg-header{padding:6px 9px;gap:7px}.kg-header small{font-size:8px}.kg-header button{min-width:36px;min-height:36px}.kg-setup{display:flex;flex-direction:column;justify-content:flex-start;gap:14px;padding:14px}.kg-preview{min-height:125px;padding:12px;flex-shrink:0;background-position:center 60%;width:100%}.kg-preview>div{display:none}.kg-preview h3{font-size:21px;margin:4px}.kg-preview p{font-size:12px;margin:4px}.kg-form{gap:8px}.kg-form h3{font-size:19px}.kg-rules{font-size:12px}.kg-form fieldset{padding:7px}.kg-units{max-height:105px}.kg-unit{font-size:12px!important;padding:6px}.kg-duo .kg-player-head{gap:4px;padding:5px 4px;min-height:83px}.kg-duo .kg-player-head>b{max-width:100%;width:100%;text-align:center;font-size:14px}.kg-duo .kg-player-head strong{font-size:17px;padding:3px 6px}.kg-duo .kg-player-head [data-progress],.kg-duo .kg-player-head [data-clock]{font-size:10px}.kg-duo .kg-target{font-size:clamp(11px,7cqw,18px)!important;width:39%;min-height:14%;padding:5px 3px;border-width:2px}.kg-duo .kg-target-0,.kg-duo .kg-target-2{left:8%}.kg-duo .kg-target-1,.kg-duo .kg-target-3{right:8%}.kg-duo .kg-ball{width:80%;max-width:125px}.kg-duo .kg-ball b{font-size:clamp(14px,9cqw,22px)}.kg-duo .kg-help{font-size:10px;padding:5px}.kg-duo .kg-feedback{font-size:13px;left:4%;right:4%;bottom:30%;padding:5px}.kg-results h3{font-size:24px}.kg-result-grid{gap:10px}.kg-result-grid article{padding:15px 7px}.kg-result-grid h4{font-size:16px}.kg-result-grid strong{font-size:23px}}
@media(max-height:570px) and (min-width:651px){.kg-header{padding:5px 15px}.kg-setup{gap:20px;padding:12px}.kg-form{gap:6px}.kg-form h3{font-size:20px}.kg-rules{font-size:12px}.kg-units{max-height:70px}.kg-unit{padding:4px}.kg-form select,.kg-form input:not([type=checkbox]){padding:5px;margin-top:2px}.kg-form fieldset{padding:6px}.kg-preview p{font-size:13px}.kg-preview>div{font-size:45px}.kg-primary{padding:8px 16px}.kg-player-head{min-height:43px;padding:4px 12px}.kg-player-head strong{font-size:20px}.kg-ball{width:min(22cqw,30cqh)}.kg-ball b{font-size:clamp(13px,4cqh,24px)}}
@media(prefers-reduced-motion:reduce){.kg-overlay *{animation:none!important;transition:none!important}}


/* 29 Ekim 2026 · Kelime Golü mobil okunabilirlik ve oran düzeltmesi */
.kg-overlay .kg-pitch{
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}
.kg-overlay .kg-header{min-width:0}
.kg-overlay .kg-header>div{min-width:0}
.kg-overlay .kg-header button{
  display:grid!important;place-items:center!important;flex:0 0 auto!important;
  appearance:none!important;-webkit-appearance:none!important;
  color:#fff!important;background:#174a83!important;
  border:2px solid #83caff!important;
  box-shadow:0 2px 8px #001c4099!important;
  opacity:1!important;visibility:visible!important;
  font-size:25px!important;line-height:1!important;
  padding:0!important;width:44px!important;height:44px!important;
}
.kg-overlay .kg-header button.kg-back{font-size:34px!important}
.kg-overlay .kg-target{
  display:flex!important;align-items:center!important;justify-content:center!important;
  color:#fff!important;opacity:1!important;
  background:var(--kg-target-color)!important;
  text-shadow:0 2px 4px #071b32,0 0 2px #071b32!important;
  font-weight:1000!important;letter-spacing:0!important;text-align:center!important;
  white-space:normal!important;overflow-wrap:break-word!important;
  box-shadow:0 3px 12px #001c40bb,inset 0 1px 4px #fff8!important;
}
.kg-overlay .kg-target.kg-correct{background:#07883f!important;border-color:#d8ffe1!important}
.kg-overlay .kg-target.kg-wrong{background:#a62435!important}
.kg-overlay .kg-ball b{
  display:block!important;color:#0b2853!important;background:#fff!important;
  text-shadow:none!important;font-weight:1000!important;
  font-size:clamp(16px,4.4cqw,30px)!important;
  line-height:1.15!important;padding:5px 7px!important;
  overflow-wrap:anywhere!important;white-space:normal!important;
  box-shadow:0 2px 7px #071b3277!important;
}
.kg-overlay .kg-unit{
  display:flex!important;align-items:center!important;gap:8px!important;
  min-width:0!important;white-space:normal!important;
  color:#fff!important;font-weight:800!important;line-height:1.3!important;
  border:1px solid #547398!important;
}
.kg-overlay .kg-unit:has(input:checked){
  color:#103f2b!important;background:#def8e7!important;
}
.kg-overlay .kg-unit input[type=checkbox]{
  display:block!important;flex:0 0 19px!important;
  width:19px!important;height:19px!important;margin:0!important;
  appearance:auto!important;-webkit-appearance:checkbox!important;
  accent-color:#159b59!important;position:static!important;
  opacity:1!important;visibility:visible!important;
}
.kg-overlay .kg-form fieldset{min-width:0!important}
.kg-overlay .kg-form legend{float:none!important;display:table!important}
.kg-overlay .kg-form select{
  background:#fff!important;color:#153559!important;
  border:2px solid #8aaed5!important;opacity:1!important;
}
@media(max-width:650px){
  .kg-overlay .kg-header{padding:8px 10px!important;gap:8px!important}
  .kg-overlay .kg-header button{width:39px!important;height:39px!important;font-size:23px!important}
  .kg-overlay .kg-header button.kg-back{font-size:31px!important}
  .kg-overlay .kg-header h2{font-size:clamp(20px,5.3vw,27px)!important}
  .kg-overlay .kg-header small{font-size:9px!important;letter-spacing:1px!important}
  .kg-overlay .kg-setup{gap:12px!important;padding:12px!important}
  .kg-overlay .kg-preview{min-height:150px!important;flex:0 0 auto!important;aspect-ratio:2.5 / 1}
  .kg-overlay .kg-form{gap:9px!important}
  .kg-overlay .kg-form fieldset{padding:10px!important}
  .kg-overlay .kg-units{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;max-height:140px!important;overflow-y:auto!important;
  }
  .kg-overlay .kg-unit{font-size:13px!important;padding:9px 8px!important;min-height:42px!important}
  .kg-overlay .kg-pitch{background-position:center center!important}
  .kg-overlay:not(.kg-duo) .kg-target{
    width:32%!important;min-height:0!important;height:auto!important;
    padding:10px 5px!important;
    font-size:clamp(14px,3.6vw,20px)!important;
    line-height:1.16!important;
  }
  .kg-overlay:not(.kg-duo) .kg-target-0{left:9%!important;top:26%!important}
  .kg-overlay:not(.kg-duo) .kg-target-1{right:9%!important;top:26%!important}
  .kg-overlay:not(.kg-duo) .kg-target-2{left:9%!important;top:48%!important}
  .kg-overlay:not(.kg-duo) .kg-target-3{right:9%!important;top:48%!important}
  .kg-overlay:not(.kg-duo) .kg-ball{width:clamp(110px,28cqw,162px)!important;bottom:5%!important}
  .kg-overlay .kg-player-head{gap:7px!important;padding:7px 8px!important;min-height:53px!important}
  .kg-overlay .kg-player-head strong{font-size:clamp(15px,4vw,21px)!important;padding:5px 9px!important}
}
@media(max-width:380px){
  .kg-overlay .kg-header{gap:5px!important}
  .kg-overlay .kg-header button{width:35px!important;height:37px!important}
  .kg-overlay .kg-units{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .kg-overlay .kg-target{font-size:13px!important}
}

/* Keeper travels from the centre of the goal towards the actual wrong shot. */
.kg-overlay .kg-goalkeeper{position:absolute;z-index:5;width:clamp(65px,18cqw,132px);aspect-ratio:140/160;pointer-events:none;transform:translate(-50%,-50%);filter:drop-shadow(0 8px 5px #001b1c88)}
.kg-overlay .kg-goalkeeper[hidden]{display:none!important}
.kg-overlay .kg-goalkeeper svg{width:100%;height:100%;display:block}
.kg-overlay .kg-goalkeeper.kg-diving{animation:kgKeeperDive .55s cubic-bezier(.18,.65,.3,1) both}
@keyframes kgKeeperDive{0%{transform:translate(-50%,-50%) rotate(0) scale(.86)}100%{transform:translate(calc(-50% + var(--kg-dive-x)),calc(-50% + var(--kg-dive-y))) rotate(var(--kg-dive-rotate)) scale(1)}}
@media(max-width:650px){.kg-overlay.kg-duo .kg-goalkeeper{width:clamp(48px,21cqw,88px)}}
@media(prefers-reduced-motion:reduce){.kg-overlay .kg-goalkeeper.kg-diving{animation:none;transform:translate(calc(-50% + var(--kg-dive-x)),calc(-50% + var(--kg-dive-y))) rotate(var(--kg-dive-rotate))}}
