/* v9.4: görev penceresi, iksir yuvaları, küçük mobil sohbet, serbest hareket kolu */
#q94 { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 64px); transform: translateX(-50%); z-index: 30; width: min(340px, 92vw); background: linear-gradient(#2a2038f2, #1a1426f2); border: 2px solid #e8b14a; border-radius: 14px; padding: 9px 12px 10px; color: #f1ead8; font-size: 12px; box-shadow: 0 6px 18px #000a; animation: q94in .25s ease-out; }
@keyframes q94in { from { transform: translate(-50%, -12px); opacity: 0; } }
#q94 .q94h { font-size: 11px; font-weight: 800; color: #ffd84a; letter-spacing: .3px; }
#q94 .q94n { display: block; font-size: 14px; margin: 2px 0 3px; }
#q94 .q94d { color: #d8d0e8; margin-bottom: 3px; }
#q94 .q94r { font-size: 11px; color: #cfc6dd; line-height: 1.35; }
#q94 .q94b { display: flex; justify-content: flex-end; gap: 6px; margin-top: 7px; }
body.m2 #q94 { top: calc(var(--gt) + 50px); font-size: 10.5px; width: min(300px, 46vw); padding: 6px 9px 7px; }
body.m2 #q94 .q94n { font-size: 12.5px; }
body.m2 #q94 .q94r { font-size: 10px; }
@media (orientation: portrait) { body.m2 #q94 { top: calc(var(--gt) + 150px); width: min(340px, 92vw); } }

/* iksir yuvaları */
.tb.p94 { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 40% 30%, #4a2a3a, #1a1020); border: 2.5px solid #ff8fa3; box-shadow: 0 2px 6px #000a; }
.tb.p94mp { border-color: #7fb4ff; background: radial-gradient(circle at 40% 30%, #22345a, #0e1428); }
.tb.p94 .pi { display: flex; pointer-events: none; }
.tb.p94 .pi canvas { width: 30px; height: 30px; }
.tb.p94 .pi b { font-size: 18px; }
.tb.p94 .pn, .sk94 .pn { position: absolute; right: -3px; bottom: -3px; min-width: 17px; padding: 0 3px; font: 800 10px/16px "Trebuchet MS", sans-serif; font-style: normal; color: #fff; background: #140c1e; border: 1.5px solid #ffffff55; border-radius: 9px; text-align: center; pointer-events: none; }
.tb.p94.empty, .sk94.empty { opacity: .5; filter: grayscale(.7); }
.sk94 { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.sk94 .pi { display: flex; }
.sk94 .pi canvas { width: 30px; height: 30px; }
.sk94.hp { border-color: #ff8fa3 !important; }
.sk94.mp { border-color: #7fb4ff !important; }
body.lay94 .tb.pot { display: none; }

/* serbest hareket kolu: boşta soluk durur, parmağın değdiği yerde belirir */
body.m2.joy94 #stick { opacity: .4; transition: opacity .15s; }
body.m2.joy94 #stick.j94on { opacity: 1; bottom: auto !important; transition: none; }

/* sohbet: küçük, köşede; dokununca büyür, üstte açılır (klavye kapatmasın) */
#chOpen { display: none; }
body.m2.c94 #chatBox:not(.open) { display: flex; align-items: flex-end; gap: 4px; opacity: .9; font-size: 10px; left: calc(var(--gl) + 124px); bottom: var(--gb); width: min(230px, 30vw); max-width: none; transform: none; }
body.m2.c94 #chatBox:not(.open) .ch-list { flex: 1; min-width: 0; max-height: 30px; }
body.m2.c94 #chatBox:not(.open) .ch-list div { padding: 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.m2.c94 #chOpen { display: flex; flex: none; position: relative; order: -1; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid #ffffff44; background: #140c1ecc; font-size: 14px; padding: 0; color: #fff; }
body.m2.c94 #chOpen em { position: absolute; top: -4px; right: -4px; background: #ff4a5a; color: #fff; font: 800 9px/14px sans-serif; font-style: normal; min-width: 14px; border-radius: 7px; text-align: center; }
body.m2.c94 #chatBox.open { top: calc(var(--gt) + 4px); bottom: auto; left: 50%; transform: translateX(-50%); width: min(520px, 94vw); max-width: none; z-index: 40; font-size: 12px; }
body.m2.c94 #chatBox.open .ch-list { max-height: min(24vh, 130px); }
body.m2.c94 #chatBox.open #chOpen { display: none; }
#chatBox #chX { flex: none; }
@media (orientation: portrait) {
  body.m2.c94 #chatBox:not(.open) { left: var(--gl); bottom: calc(var(--gb) + 128px); width: min(220px, 56vw); }
}
/* iksir bekleme süresi: becerilerdeki gibi dairesel dilim + kalan saniye */
.tb.p94::after, .sk94::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: conic-gradient(rgba(16, 8, 24, .72) calc(var(--cd, 0) * 1turn), transparent 0); pointer-events: none; z-index: 1; }
.p94cs { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; font: 900 16px/1 "Trebuchet MS", sans-serif; font-style: normal; color: #fff; text-shadow: 0 2px 0 #000a, 0 0 4px #000; pointer-events: none; }
.p94cs:empty { display: none; }
.tb.p94 .pn, .sk94 .pn { z-index: 3; }
