.tf-world-controls{position:absolute;inset:0;z-index:6;pointer-events:none;user-select:none;-webkit-user-select:none;font:650 13px/1.1 system-ui,sans-serif;color:white;--touch-bottom:max(14px,var(--play-safe-bottom,env(safe-area-inset-bottom)));--exit-gap:0px}
.tf-world-controls[hidden],.tf-world-controls [hidden]{display:none!important}
.tf-world-stick,.tf-world-use,.tf-world-action,.tf-world-extra,.tf-world-trick{position:absolute;pointer-events:auto;touch-action:none;-webkit-tap-highlight-color:transparent}
.tf-world-stick{display:none}
.tf-world-use,.tf-world-action,.tf-world-extra,.tf-world-trick{place-items:center;grid-auto-flow:column;gap:5px;right:max(18px,var(--play-safe-right,env(safe-area-inset-right)));min-width:52px;height:48px;bottom:calc(var(--touch-bottom,max(18px,env(safe-area-inset-bottom))) + var(--control-offset,0px));padding:0 12px;border-radius:28px;border:1px solid #fafbe5b8;background:#253f38e3;color:#fffef0;font:inherit}
.tf-world-use,.tf-world-action,.tf-world-extra,.tf-world-trick{display:grid}
.tf-world-action{background:#135851;border-color:#cbe8a7}
.tf-world-controls[data-exit-control]{--exit-gap:54px}
.tf-world-action{--control-offset:var(--exit-gap)}
.tf-world-extra,.tf-world-trick{--control-offset:calc(var(--exit-gap) + 54px)}
.tf-world-trick.tf-world-with-extra{--control-offset:calc(var(--exit-gap) + 108px)}
.tf-world-trick-picker{position:absolute;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;pointer-events:auto;right:calc(max(18px,var(--play-safe-right,env(safe-area-inset-right))) + 104px);bottom:calc(var(--touch-bottom) + 100px);width:min(250px,calc(100% - 136px));padding:6px;border:1px solid #afc6b1;border-radius:12px;background:#183b35f2;box-shadow:0 3px 16px #152e3350}
.tf-world-trick-picker button{display:flex;align-items:center;gap:7px;min-height:44px;padding:6px 8px;border:1px solid #b1c9af6b;border-radius:8px;background:#315249;color:#fffdf2;font:inherit;line-height:1.22;text-align:left;touch-action:none}
.tf-world-trick-picker button span:first-child{font-size:16px;color:#cbe4c2}
.tf-world-trick-picker button span:last-child{min-width:0;overflow-wrap:anywhere}
.tf-world-trick-picker button:hover,.tf-world-trick[aria-expanded=true]{background:#46695b}
.tf-world-trick-picker button:focus-visible,.tf-world-trick:focus-visible{outline:2px solid #f8efba;outline-offset:2px}
.play-key{display:inline-grid;place-items:center;flex:none;min-width:1.55em;min-height:1.55em;padding:0 3px;border:1px solid currentColor;border-radius:4px;font:650 10px/1 system-ui,sans-serif;white-space:nowrap}
.tf-world-trick-direction{white-space:nowrap}
@media(pointer:fine){.tf-world-trick-direction:before{content:'T+';font-size:9px;margin-right:2px}}
[data-touch-play] .tf-world-stick{display:grid}
.tf-world-stick{width:var(--stick-size,92px);height:var(--stick-size,92px);left:max(16px,var(--play-safe-left,env(safe-area-inset-left)));bottom:var(--touch-bottom);border-radius:50%;border:1px solid #f6fff287;background:#1e3b398c;box-shadow:0 2px 12px #14363533;align-items:center;justify-items:center}
.tf-world-stick:after{content:'';position:absolute;inset:var(--stick-center,34px);border-radius:50%;border:1px solid #f1f7debb;background:#dfeacf66;transform:translate(var(--stick-x,0px),var(--stick-y,0px));pointer-events:none}
.tf-world-arrow{position:absolute;color:#fffef1a1;font:12px/1 system-ui,sans-serif;pointer-events:none}
.tf-world-arrow:nth-child(1){top:9px}.tf-world-arrow:nth-child(2){right:9px}.tf-world-arrow:nth-child(3){bottom:9px}.tf-world-arrow:nth-child(4){left:9px}
.tf-world-stick-label{position:absolute;bottom:calc(100% + 5px);border-radius:5px;padding:4px 8px;background:#153631ed;pointer-events:none}
[data-touch-play] .tf-world-trick-picker{right:calc(max(18px,var(--play-safe-right,env(safe-area-inset-right))) + 76px);bottom:calc(var(--touch-bottom) + 100px);width:min(225px,calc(100% - 114px))}
[data-sideways-play] .tf-world-controls{--stick-size:76px;--stick-center:27px;--touch-bottom:max(10px,var(--play-safe-bottom))}
@media(max-height:515px){
  [data-touch-play] .tf-world-controls{--stick-size:76px;--stick-center:27px;--touch-bottom:max(10px,var(--play-safe-bottom,env(safe-area-inset-bottom)))}
}
@media(pointer:coarse){.play-key{display:none}}
