/* V17: independently tappable controls; left finger stays on its movement owner. */
#sprintButton{position:absolute;left:21px;bottom:calc(100% + 9px);min-width:96px;min-height:44px;border:1px solid #e0bd74a6;border-radius:24px;background:#172d29f2;color:#ffe4a8;font-weight:800;font-size:11px;letter-spacing:.04em;touch-action:manipulation;pointer-events:auto;box-shadow:0 3px 12px #0005}
#sprintButton[aria-pressed=true]{background:#d8b66d;color:#142922;box-shadow:0 0 0 3px #e9c67933}
.camera-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:240px;gap:5px}
.camera-tools #cameraModeButton{width:auto!important;min-width:92px;padding:0 9px;font-size:9px;letter-spacing:.02em}
.camera-tools .control-v17{height:36px;min-width:36px;touch-action:manipulation;border:1px solid #c8ad756e;border-radius:9px;background:#142b26ed;color:#f3ddb0;pointer-events:auto}
.camera-tools #cameraModeButton[aria-pressed=true]{background:#b58e4b;color:#12291f}
@media(pointer:fine) and (min-width:1000px){#sprintButton{display:none}}
@media(max-width:559px){.camera-tools{max-width:180px}.camera-tools .control-v17{height:36px;min-width:36px}.camera-tools #cameraModeButton{min-width:86px;font-size:8px}}
@media(orientation:landscape) and (max-height:650px){#sprintButton{left:10px;bottom:-10px;min-height:38px;min-width:104px}.camera-tools{max-width:210px}}
/* Keep camera hit boxes in the minimap's own rail, away from quest and combat. */
@media(max-width:559px){
 .camera-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:106px;max-width:106px;gap:5px}
 .camera-tools button{width:100%;min-width:0;height:36px}
 .camera-tools #cameraModeButton{grid-column:1/-1;width:100%!important;min-width:0;font-size:8px}
 .chat-toggle{left:auto;right:calc(12px + var(--safe-right));top:calc(341px + var(--safe-top));bottom:auto}
}
@media(orientation:landscape) and (max-height:650px) and (min-width:560px){
 .camera-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));top:calc(55px + var(--safe-top));right:calc(126px + var(--safe-right));width:132px;max-width:132px;gap:5px}
 .camera-tools button{width:100%;min-width:0;height:36px}
 .camera-tools #cameraModeButton{grid-column:1/-1;width:100%!important;min-width:0;font-size:9px}
}
