/* Oyun görünümü: maketin arkasındaki soluk kâğıt yerine yumuşak bir gökyüzü ve ufuk ışığı. */
#board.board{background:
  radial-gradient(ellipse 70% 45% at 50% 58%,#f4f7e2cc 0%,#f4f7e200 70%),
  radial-gradient(ellipse 90% 60% at 80% 0%,#fff6d6aa 0%,#fff6d600 60%),
  linear-gradient(180deg,#b8dde6 0%,#cfe8e2 38%,#e3efd6 72%,#eee9cf 100%)}
#board.board:after{opacity:.16}

/* Öğretici: dokunulacak yeri gösteren zıplayan ok, çevresinde dalga ve parlayan etiket.
   Açık zeminde de koyu zeminde de seçilsin diye beyaz kenar, koyu çizgi ve sarı ışık birlikte kullanılır. */
.tk-hint{position:absolute;left:0;top:0;z-index:6;pointer-events:none;display:grid;justify-items:center}
.tk-hint svg{position:absolute;left:-29px;top:-78px;width:58px;height:66px;overflow:visible;filter:drop-shadow(0 0 7px #ffd23fcc) drop-shadow(0 4px 4px #3a2d0a66);animation:tk-hint-bob .8s cubic-bezier(.45,0,.55,1) infinite}
.tk-hint i{position:absolute;left:-24px;top:-14px;width:48px;height:48px;border-radius:50%;border:4px solid #ffcf3f;box-shadow:0 0 10px #ffcf3f;animation:tk-hint-ring 1.2s ease-out infinite}
.tk-hint i:after{content:'';position:absolute;inset:-4px;border-radius:50%;border:3px solid #fff;animation:tk-hint-ring 1.2s .45s ease-out infinite}
.tk-hint span{position:absolute;left:0;top:-114px;translate:-50% 0;padding:5px 14px 6px;border-radius:999px;background:#ffcf3f;color:#2e2457;border:2.5px solid #fff;
  font:800 15px/1.2 Atkinson,system-ui;letter-spacing:.02em;white-space:nowrap;box-shadow:0 3px 0 #b8902e,0 0 16px #ffd23faa;animation:tk-hint-label 1.6s ease-in-out infinite}
@keyframes tk-hint-bob{0%,100%{translate:0 -4px}50%{translate:0 -20px}}
@keyframes tk-hint-ring{from{scale:.35;opacity:1}to{scale:1.9;opacity:0}}
@keyframes tk-hint-label{50%{scale:1.08}}
@media(prefers-reduced-motion:reduce){.tk-hint span,.tk-hint i:after{animation:none}}

/* Portal tüneli */
.tk-tunnel{position:absolute;inset:0;width:100%;height:100%;z-index:9;pointer-events:all}
.tk-tunnel-label{position:absolute;left:50%;bottom:12%;translate:-50% 0;z-index:10;display:grid;justify-items:center;gap:4px;color:#fff6d8;text-align:center;
  font:600 clamp(20px,3vw,30px)/1.1 Shantell,Atkinson,system-ui;text-shadow:0 2px 14px #2b1f6b;pointer-events:none}
.tk-tunnel-label small{font:700 12px/1 Atkinson,system-ui;letter-spacing:.14em;text-transform:uppercase;color:#ffd76e}

/* Totem balonunda çok satırlı soru metni */
.tk-bubble[data-kind=totem] .tk-bubble-text{white-space:pre-line}

/* Dilek gücü: keçe 🙏 düğmesi. Boşta hafifçe sallanıp nabız gibi parlar; dokundukça sıkışır, kıvılcım saçar, ışığı büyür. */
.tk-form .tk-boost-wrap{display:flex;align-items:center;gap:12px;padding:6px 4px 4px}
.tk-form .tk-boost{--power:1;position:relative;flex:none;width:72px;height:72px;padding:0;border:0;border-radius:50%;cursor:pointer;
  background:radial-gradient(circle,#fff3c4 0%,#ffd76e55 45%,#ffd76e00 70%);box-shadow:0 0 calc(4px + var(--power) * 4px) #ffd36acc;
  animation:tk-boost-idle 1.6s ease-in-out infinite;touch-action:manipulation}
.tk-form .tk-boost:before{content:'';position:absolute;inset:-6px;border-radius:50%;border:2px solid #ffd76e;animation:tk-boost-ring 1.6s ease-out infinite;pointer-events:none}
.tk-form .tk-boost img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 4px #1a123a88) brightness(calc(1 + var(--power) * .03))}
.tk-form .tk-boost b{position:absolute;right:-6px;top:-4px;min-width:30px;padding:3px 6px;border-radius:999px;background:#ff8a3d;color:#fff;font:800 calc(13px*var(--tk-text,1))/1 Atkinson,system-ui;border:2px solid #fff3c4;box-shadow:0 2px 4px #0005}
.tk-form .tk-boost.pop{animation:tk-boost-squeeze .32s cubic-bezier(.34,1.56,.64,1)}
.tk-form .tk-boost.full{box-shadow:0 0 34px #ffe27a,0 0 0 4px #ffe27a66}
.tk-form .tk-boost.full:before{border-color:#fff}
.tk-form .tk-boost-spark{position:absolute;left:50%;top:40%;width:8px;height:8px;margin:-4px;border-radius:50%;background:radial-gradient(circle,#fff,#ffd36a 60%,#ffd36a00);
  animation:tk-boost-spark .7s ease-out forwards;pointer-events:none}
.tk-form .tk-boost-copy{display:grid;gap:3px}
.tk-form .tk-boost-copy strong{font:600 calc(16px*var(--tk-text,1))/1.15 Shantell,Atkinson,system-ui;color:#fff4d2}
.tk-form .tk-boost-cheer{font:600 calc(12px*var(--tk-text,1))/1.25 Shantell,Atkinson,system-ui;color:#ffd76e;min-height:1.25em}
@keyframes tk-boost-idle{0%,100%{rotate:-4deg;scale:1}50%{rotate:4deg;scale:1.06}}
@keyframes tk-boost-ring{from{scale:.85;opacity:.9}to{scale:1.35;opacity:0}}
@keyframes tk-boost-squeeze{0%{scale:1}30%{scale:.82 1.08}65%{scale:1.14 .94}100%{scale:1}}
@keyframes tk-boost-spark{to{transform:translate(var(--dx),var(--dy)) scale(.3);opacity:0}}
@media(prefers-reduced-motion:reduce){.tk-form .tk-boost,.tk-form .tk-boost:before,.tk-form .tk-boost.pop{animation:none}.tk-form .tk-boost-spark{display:none}}
@media(prefers-reduced-motion:reduce){.tk-hint svg,.tk-hint i,.tk-form .tk-boost.pop,.tk-form .tk-boost.pop .tk-boost-star{animation:none}}
/* Totem balonları test sorularında daha geniş; ilk satır (soru numarası ve yönerge) küçük yazılır */
.tk-bubble[data-kind=totem]{max-width:min(calc(340px*var(--tk-text,1)),calc(100% - 16px))}
.tk-bubble[data-kind=totem] .tk-bubble-text::first-line{font-size:calc(12px*var(--tk-text,1));letter-spacing:.02em;color:#ffd76e}
@media(max-width:680px){.tk-bubble[data-kind=totem]{max-width:min(calc(300px*var(--tk-text,1)),calc(100% - 16px))}}

/* Dilek formunun üstündeki özet: ziyaretçi ne dilediğini burada yeniden görür */
.tk-form .tk-wish{padding:8px 11px;border-radius:12px;border:1.5px dashed #e6bf5599;background:#ffffff10}
.tk-form .tk-wish strong{display:block;margin-bottom:3px;font:700 calc(11px*var(--tk-text,1))/1 Atkinson,system-ui;letter-spacing:.08em;text-transform:uppercase;color:#ffd76e}
.tk-form .tk-wish ul{margin:0;padding:0;list-style:none;display:grid;gap:2px}
.tk-form .tk-wish li{font:600 calc(13px*var(--tk-text,1))/1.3 Shantell,Atkinson,system-ui;color:#fff4d2}
.tk-form .tk-wish li:last-child{color:#ffe58f}

/* Yazı boyutu ve ses düğmeleri: sol alt köşe */
.tk-controls{position:absolute;z-index:5;left:max(14px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:2px;padding:4px;
  border:1px solid #bcc8b8;border-radius:14px;background:#fffdf3;color:#334d49;box-shadow:0 2px 0 #9da797,0 6px 16px #2e4d4222}
/* A− ve A+: harfler aynı tabana oturur, işaret ikisinde de aynı hizada küçük bir üs gibi durur */
.tk-controls button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:37px;padding:0 6px;border-radius:9px;font:700 18px/1 Atkinson,system-ui}
.tk-controls .tk-text-down,.tk-controls .tk-text-up{align-items:flex-end;padding-bottom:10px}
.tk-controls .tk-text-down span{font-size:14px;line-height:14px}
.tk-controls .tk-text-up span{font-size:19px;line-height:19px}
.tk-controls button small{font-size:13px;line-height:13px;margin-left:1px;align-self:flex-start;margin-top:9px}
.tk-controls button:hover:not(:disabled){background:#eeeede}
.tk-controls button:disabled{opacity:.35;cursor:default}
.tk-controls svg{width:21px;height:21px;align-self:center}
.tk-controls [aria-pressed=true] .off,.tk-controls [aria-pressed=false] .on{display:none}
.tk-controls [aria-pressed=false]{color:#9aa79c}
.tk-controls i{width:1px;height:19px;background:#d5d8c8;margin:0 2px}
.tk-controls-toggle{display:none!important}
/* Telefonda: sol altta, araç çubuğuyla aynı sırada tek düğme; açılınca diğerleri onun üstünde sütun olur. */
@media(max-width:760px){
  .tk-controls{flex-direction:column-reverse;left:8px;bottom:max(9px,env(safe-area-inset-bottom));padding:3px}
  .tk-controls .tk-controls-toggle{display:inline-flex!important;min-width:37px;height:37px}
  .tk-controls:not(.open)>:not(.tk-controls-toggle){display:none}
  .tk-controls.open .tk-controls-toggle{background:#eeeede}
  .tk-controls button{min-width:37px;height:36px}.tk-controls i{width:21px;height:1px;margin:2px 0}
}

/* Yazı boyutu program defterine ve bildirimlere de uygulanır */
#drawer-body p,#drawer-body li{font-size:calc(15px*var(--tk-text,1))}
#drawer-body figcaption{font-size:calc(14px*var(--tk-text,1))}
#drawer-body h3{font-size:calc(17px*var(--tk-text,1))}
#toast{font-size:calc(14px*var(--tk-text,1))}

/* Ses izni kartı: ekranın alt ortasında, araç çubuğunun hemen üstünde */
.tk-sound-ask{position:absolute;z-index:7;left:50%;bottom:calc(max(14px,env(safe-area-inset-bottom)) + 62px);translate:-50% 0;display:flex;align-items:center;gap:12px;
  width:max-content;max-width:calc(100% - 24px);padding:10px 12px 10px 10px;border-radius:16px;border:1.5px solid #e6bf55;color:#fff4d2;
  background:linear-gradient(140deg,#24304f,#2e2457 55%,#1d3d4e);box-shadow:0 0 0 3px #e6bf5533,0 0 22px #ffd36a55,0 10px 24px #1b1a3555;animation:tk-ask-in .4s cubic-bezier(.34,1.56,.64,1)}
.tk-sound-ask-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:#ffd76e;color:#2e2457;animation:tk-ask-pulse 1.6s ease-in-out infinite}
.tk-sound-ask-icon svg{width:26px;height:26px}.tk-sound-ask-icon .off{display:none}
.tk-sound-ask p{display:grid;gap:2px;margin:0}
.tk-sound-ask strong{font:600 calc(16px*var(--tk-text,1))/1.15 Shantell,Atkinson,system-ui}
.tk-sound-ask p span{font:500 calc(12.5px*var(--tk-text,1))/1.25 Atkinson,system-ui;opacity:.85}
.tk-sound-ask div{display:flex;gap:6px;flex-wrap:wrap}
.tk-sound-ask button{padding:7px 12px;border-radius:999px;font:800 calc(13px*var(--tk-text,1))/1 Atkinson,system-ui;cursor:pointer}
.tk-sound-ask .yes{background:#ffd76e;color:#2e2457;box-shadow:0 2px 0 #b8902e}
.tk-sound-ask .no{color:#fff4d2;border:1.5px solid #e6bf5580}
.tk-sound-ask .yes:hover{background:#ffe48f}.tk-sound-ask .no:hover{background:#ffffff14}
@keyframes tk-ask-in{from{opacity:0;translate:-50% 14px}}
@keyframes tk-ask-pulse{50%{box-shadow:0 0 0 7px #ffd76e33}}
@media(max-width:760px){.tk-sound-ask{flex-wrap:wrap;justify-content:center;text-align:center;bottom:60px}.tk-sound-ask-icon{display:none}}
@media(prefers-reduced-motion:reduce){.tk-sound-ask,.tk-sound-ask-icon{animation:none}}

/* Giriş yolculuğu: haritanın üstünde tam ekran katman */
.tk-intro{position:absolute;inset:0;z-index:20;background:#9fd6d2;overflow:hidden;transition:opacity .6s ease}
.tk-intro.out{opacity:0;pointer-events:none}
.tk-intro canvas{position:absolute;inset:0;width:100%;height:100%}
.tk-intro .tk-intro-bubble{max-width:min(calc(330px*var(--tk-text,1)),calc(100% - 20px));cursor:default}
.tk-intro .tk-intro-bubble .tk-bubble-text{font-size:calc(16px*var(--tk-text,1))}
.tk-intro-actions{display:flex;justify-content:flex-end;margin-top:10px;opacity:0;transition:opacity .3s}
.tk-intro-bubble.ready .tk-intro-actions{opacity:1}
.tk-intro-go{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:999px;background:#ffd76e;color:#2e2457;border:2px solid #fff;
  font:800 calc(15px*var(--tk-text,1))/1 Atkinson,system-ui;box-shadow:0 3px 0 #b8902e,0 0 18px #ffd23f99;cursor:pointer;animation:tk-hint-label 1.6s ease-in-out infinite}
.tk-intro-go:hover{background:#ffe48f}
.tk-intro-go span{font-size:1.15em}
.tk-intro-skip{position:absolute;right:max(14px,env(safe-area-inset-right));top:14px;z-index:2;padding:7px 13px;border-radius:999px;background:#fffdf3e6;color:#334d49;
  border:1px solid #bcc8b8;font:700 13px/1 Atkinson,system-ui;box-shadow:0 2px 0 #9da797;cursor:pointer}
.tk-intro-skip:hover{background:#fff}
body:has(.tk-intro) .tk-sound-ask{display:none}
@media(prefers-reduced-motion:reduce){.tk-intro-go{animation:none}}

/* Hedef seçimi: İngiltere haritasında şehir etiketleri ve Valice'in seçim balonu (tik-intro.js, pick) */
.tk-pick-labels{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .45s ease}
.tk-pick-labels.show{opacity:1}
.tk-pick-labels.show .tk-pick-chip{pointer-events:auto}
.tk-intro.flying .tk-pick-labels{opacity:0;transition-duration:.25s}
.tk-intro.flying .tk-pick-labels .tk-pick-chip{pointer-events:none}
.tk-pick-chip{position:absolute;left:0;top:0;display:inline-flex;align-items:center;gap:6px;padding:5px 11px 6px;border-radius:999px;pointer-events:none;
  background:#fff9e8f2;color:#263f35;border:1.5px solid #687760;font:600 calc(14px*var(--tk-text,1))/1 Shantell,Atkinson,system-ui;white-space:nowrap;
  box-shadow:0 2px 0 #68776055;cursor:pointer;transition:background .15s,box-shadow .15s,scale .15s}
.tk-pick-chip b{font-weight:600}
.tk-pick-chip small{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#2f5d4b;color:#fff;font:700 11px/1 Atkinson,system-ui}
.tk-pick-chip:hover{background:#fff3c8}
.tk-pick-chip.on{background:#ffd76e;border-color:#b8902e;box-shadow:0 2px 0 #b8902e,0 0 14px #ffd23f99}
.tk-pick-chip.spin{background:#ffe48f;border-color:#b8902e;scale:1.12}
.tk-pick-chip:focus-visible{outline:3px solid #2f5d4b;outline-offset:2px}
.tk-intro .tk-pick-bubble{max-width:none;cursor:default}
.tk-pick-options{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;min-height:38px;align-items:center}
.tk-pick-hint{font:600 calc(13px*var(--tk-text,1))/1.2 Atkinson,system-ui;color:#6a6a52}
.tk-pick-opt{appearance:none;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:6px 10px;border:1.5px solid #b8902e;border-radius:10px;
  background:#fffdf3;color:#2e2457;font:700 calc(13px*var(--tk-text,1))/1.15 Atkinson,system-ui;text-align:left;cursor:pointer}
.tk-pick-opt small{font:600 calc(11px*var(--tk-text,1))/1 Atkinson,system-ui;color:#7a6a3a}
.tk-pick-opt:hover{background:#fff3c8}
.tk-pick-opt[aria-pressed=true]{background:linear-gradient(#fff0b8,#ffdd7a);box-shadow:0 2px 0 #a8822a}
.tk-pick-opt:focus-visible{outline:3px solid #2f5d4b;outline-offset:2px}
.tk-pick-bubble .tk-intro-actions{justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.tk-pick-lucky{white-space:nowrap;display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border-radius:999px;background:#fffdf3;color:#2f5d4b;border:2px solid #2f5d4b;
  font:800 calc(14px*var(--tk-text,1))/1 Atkinson,system-ui;box-shadow:0 2px 0 #2f5d4b;cursor:pointer}
.tk-pick-lucky:hover{background:#eef6ea}
.tk-pick-lucky .die{display:inline-block;font-size:1.2em;line-height:1}
.tk-intro.spinning .tk-pick-lucky .die{animation:tk-die .4s linear infinite}
.tk-intro.spinning .tk-pick-chip,.tk-intro.spinning .tk-pick-bubble button{pointer-events:none}
@keyframes tk-die{to{rotate:360deg}}
.tk-pick-bubble .tk-intro-go{white-space:nowrap}
.tk-intro-go:disabled{opacity:.45;animation:none;box-shadow:0 2px 0 #b8902e;cursor:default}
/* Dar ekranda Valice balonun solunda durur; kuyruk sola bakar, seçenekler yana kayar */
.tk-pick-bubble.side:before{left:-11px;bottom:auto;top:var(--tail-y,70%);translate:0 -50%;border:10px solid transparent;border-left:0;border-right-color:#687760}
.tk-pick-bubble.side:after{left:-8px;bottom:auto;top:var(--tail-y,70%);translate:0 -50%;border:9px solid transparent;border-left:0;border-right-color:#fff9e8}
.tk-pick-bubble.side .tk-intro-bubble,.tk-pick-bubble.side .tk-bubble-text{font-size:calc(15px*var(--tk-text,1))}
.tk-pick-bubble.side .tk-pick-options{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-4px;padding:2px 4px}
.tk-pick-bubble.side .tk-pick-opt{flex:0 0 auto}
@media(prefers-reduced-motion:reduce){.tk-intro.spinning .tk-pick-lucky .die{animation:none}}
.tk-pick-ghost{visibility:hidden}
.tk-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:699px){
  .tk-pick-chip{gap:4px;padding:4px 8px 5px;font-size:calc(12.5px*var(--tk-text,1))}
  .tk-pick-chip small{min-width:16px;height:16px;font-size:10px}
  .tk-pick-bubble .tk-intro-actions{flex-wrap:nowrap;gap:6px}
  .tk-pick-lucky{padding:7px 9px;font-size:calc(12.5px*var(--tk-text,1));gap:4px;min-width:0}
  .tk-pick-bubble .tk-intro-go{padding:8px 10px;font-size:calc(13.5px*var(--tk-text,1));gap:5px}
  .tk-pick-bubble.side{padding-inline:11px}
  .tk-pick-options{margin-top:6px;min-height:34px}
}

/* Siteye dönüş geçidi: totem levhasının mor tonu; ışınlanma tuvali her şeyin üstünde. */
.tk-gate-sign{border-color:#b89cff;background:linear-gradient(140deg,#2a1850f0,#3d1f6ef0);box-shadow:0 0 0 3px #b89cff2e,0 0 16px #9d7bff88;translate:-50% -100%}
.tk-gate-sign:before{content:'↩';color:#e3d4ff;animation:none}
.tk-gate-sign:hover,.tk-gate-sign:focus-visible{background:linear-gradient(140deg,#3a2370,#4c2a88);box-shadow:0 0 0 3px #b89cff55,0 0 22px #b89cffaa}
.tk-warp{position:fixed;inset:0;width:100vw;height:100vh;z-index:200;pointer-events:all}
.tk-warp-label{position:fixed;left:50%;bottom:14%;translate:-50% 0;z-index:201;padding:0 16px;color:#fff6d8;text-align:center;pointer-events:none;
  font:600 calc(20px*var(--tk-text,1))/1.2 Shantell,Atkinson,system-ui;text-shadow:0 2px 12px #000a;opacity:0}

/* Klavye: yakındaki şeyin üstündeki "E" ipucu ve kısayol listesi */
.tk-key-tip{position:absolute;top:0;left:0;z-index:6;display:flex;align-items:center;gap:6px;padding:4px 10px 4px 4px;border-radius:999px;pointer-events:none;
  background:#fffdf3f2;color:#263f35;border:1.5px solid #687760;box-shadow:0 2px 0 #85876b,0 6px 14px #3d503a33;translate:-50% 10px;
  font:700 calc(13px*var(--tk-text,1))/1 Atkinson,system-ui;white-space:nowrap}
.tk-key-tip[hidden],.tk-keys[hidden]{display:none}
.tk-key-tip kbd,.tk-keys kbd{display:inline-grid;place-items:center;min-width:1.7em;height:1.7em;padding:0 .35em;border-radius:6px;border:1.5px solid #b8902e;
  border-bottom-width:3px;background:#ffe69a;color:#3a3015;font:800 .85em/1 Atkinson,system-ui}
.tk-keys{position:absolute;z-index:8;top:10px;right:12px;width:min(calc(360px*var(--tk-text,1) / 1.25),calc(100% - 24px));max-height:calc(100% - 20px);overflow:auto;
  padding:13px 15px 12px;border-radius:14px;border:1.5px solid #687760;background:#fff9e8;color:#263f35;box-shadow:0 2px 0 #85876b,0 12px 26px #3d503a40;scrollbar-width:thin}
.tk-keys>strong{display:block;margin:0 26px 2px 0;font:600 calc(18px*var(--tk-text,1) / 1.25)/1.15 Shantell,Atkinson,system-ui}
.tk-keys>p{margin:0 0 8px;font:500 calc(13px*var(--tk-text,1) / 1.25)/1.3 Atkinson,system-ui;color:#586b60}
.tk-keys section+section{margin-top:9px;padding-top:8px;border-top:1px dashed #c9c4a0}
.tk-keys h3{margin:0 0 5px;font:800 calc(11px*var(--tk-text,1) / 1.25)/1 Atkinson,system-ui;letter-spacing:.08em;text-transform:uppercase;color:#7a6a3a}
.tk-keys dl{display:grid;gap:6px;margin:0}
.tk-keys dl div{display:grid;grid-template-columns:calc(124px*var(--tk-text,1) / 1.25) 1fr;gap:10px;align-items:start}
.tk-keys dt{display:flex;flex-wrap:wrap;align-items:center;gap:3px;font:700 calc(12.5px*var(--tk-text,1) / 1.25)/1.5 Atkinson,system-ui;color:#3d5148}
.tk-keys dd{margin:0;font:500 calc(13.5px*var(--tk-text,1) / 1.25)/1.3 Atkinson,system-ui;padding-top:2px}
.tk-keys-close{position:absolute;top:6px;right:7px;width:30px;height:30px;border:0;border-radius:50%;background:none;color:#6a6a52;font:600 22px/1 system-ui;cursor:pointer}
.tk-keys-close:hover{background:#0000000d}
.header-tools #keys .symbol{font-size:18px;line-height:1}
.header-tools #keys[aria-expanded=true]{background:#345b49;border-color:#345b49;color:#fffbed}
/* İlk ziyarette "Kısayollar" düğmesi birkaç kez hafifçe parlar; açılınca bir daha parlamaz. */
.header-tools #keys.nudge{animation:tk-keys-nudge 1.6s ease-in-out 1.2s 4}
@keyframes tk-keys-nudge{0%,100%{box-shadow:0 0 0 0 #ffd76e00}50%{box-shadow:0 0 0 5px #ffd76ecc;background:#fff3c8}}
@media(prefers-reduced-motion:reduce){.header-tools #keys.nudge{animation:none;box-shadow:0 0 0 3px #ffd76ecc}}
/* Dar masaüstünde başlık sığsın: "Tam ekran" yalnızca simgesiyle görünür, "Kısayollar" yazısı kalır. */
.header-tools button{white-space:nowrap}
@media(max-width:1000px){#fullscreen .wide{display:none}}

/* Dokunmatik joystick (tik-joystick.js): yarı saydam krem halka, ortada Valice'in sarı bavulu gibi bir topuz.
   Basılıyken netleşir; bırakınca topuz yaylanarak ortaya döner. Taşınabildiği düzende sağ üst kenarında küçük
   bir tutamaç vardır; taşırken halka kesikli çizgiyle çevrilir, ilk yerine yaklaşınca çizgi yeşile döner. */
.tk-stick{--stick:clamp(100px,calc(14vmin + 52px),132px);position:absolute;z-index:4;left:50%;top:80%;width:var(--stick);height:var(--stick);translate:-50% -50%;
  touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.tk-stick[hidden]{display:none}
.tk-stick-base{position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;border:1.5px solid #b7c3b2;opacity:.82;
  background:radial-gradient(circle,#fffdf3e0 0 50%,#fffdf3b3 72%,#f1eddab8);box-shadow:0 2px 0 #9da79799,0 6px 16px #2e4d4224,inset 0 0 0 7px #ffffff4d;
  transition:opacity .2s,border-color .2s,scale .2s}
.tk-stick-marks{position:absolute;inset:0;width:100%;height:100%;fill:#8d9d8c}
.tk-stick-knob{position:relative;display:grid;place-items:center;width:44%;height:44%;border-radius:50%;border:2px solid #685938;
  background:radial-gradient(circle at 36% 30%,#ffe390,#f6c84a 56%,#e2ab3c);box-shadow:0 3px 0 #685938,0 7px 11px #3a33204d;
  transition:transform .2s cubic-bezier(.3,1.6,.5,1)}
.tk-stick-knob i{display:flex;gap:9px}.tk-stick-knob i:before,.tk-stick-knob i:after{content:'';width:6px;height:6px;border-radius:50%;background:#4d4c38}
.tk-stick.active .tk-stick-base{opacity:1}
.tk-stick.active .tk-stick-knob{transition:none}
.tk-stick.walking .tk-stick-base{border-color:#c9a043}
.tk-stick-grip{display:none}
.tk-stick.movable .tk-stick-grip{position:absolute;top:calc(var(--stick)*.146 - 16px);right:calc(var(--stick)*.146 - 16px);display:grid;place-items:center;width:30px;height:30px;
  border-radius:50%;border:1px solid #bcc8b8;background:#fffdf3;color:#526557;box-shadow:0 1px 0 #9da797,0 3px 8px #2e4d421f;touch-action:none}
.tk-stick-grip:after{content:'';position:absolute;inset:-9px;border-radius:50%}
.tk-stick-grip svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tk-stick.moving .tk-stick-base{opacity:1;scale:1.05;border:2px dashed #c9a043}
.tk-stick.moving.home .tk-stick-base{border-color:#4f8a6b}
.tk-stick.moving .tk-stick-grip{background:#ffdf79;border-color:#997723;color:#3e3a22}
@media(prefers-reduced-motion:reduce){.tk-stick-knob,.tk-stick-base{transition:none}}
/* Joystick alt ortadaysa kısa bildirimler ve ses izni kartı onun üstünde çıkar. */
.board #toast{bottom:max(75px,var(--stick-clear,0px))}
.board .tk-sound-ask{bottom:max(calc(max(14px,env(safe-area-inset-bottom)) + 62px),var(--stick-clear,0px))}
@media(max-width:760px){.board .tk-sound-ask{bottom:max(60px,var(--stick-clear,0px))}}

/* Joystick'le bir şeyin yanında durunca beliren dokunma düğmesi (game.js, touchHint): totemin, geçidin ya da
   durağın dibinde sarı bir hap. Belirirken küçük bir sıçrama yapar, halkası iki kez hafifçe dalgalanır. */
.tk-touch-tip{position:absolute;top:0;left:0;z-index:6;display:flex;align-items:center;gap:6px;height:38px;padding:0 14px 0 8px;margin:6px 0 0;
  border-radius:999px;border:1.5px solid #997723;background:#ffdf79;color:#3e3a22;font:700 calc(14px*var(--tk-text,1))/1 Atkinson,system-ui;white-space:nowrap;
  box-shadow:0 2px 0 #997723,0 6px 14px #3a33203d;translate:-50% 0;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.tk-touch-tip[hidden]{display:none}
.tk-touch-tip svg{width:22px;height:22px;fill:none;stroke:#6b5418;stroke-width:2}
.tk-touch-tip svg circle:first-child{fill:#6b5418;stroke:none}
.tk-touch-tip:after{content:'';position:absolute;inset:-2px;border-radius:inherit;border:2px solid #f6c84a;opacity:0;pointer-events:none}
.tk-touch-tip.pop{animation:tk-touch-pop .32s cubic-bezier(.3,1.6,.5,1)}
.tk-touch-tip.pop:after{animation:tk-touch-ring 1.2s .3s ease-out 2}
@keyframes tk-touch-pop{from{scale:.5;opacity:0}}
@keyframes tk-touch-ring{from{opacity:.9;scale:1}to{opacity:0;scale:1.35 1.6}}
@media(prefers-reduced-motion:reduce){.tk-touch-tip.pop,.tk-touch-tip.pop:after{animation:none}}
