/* Roofing Giant Alpha 11: responsive, customizable mobile thumb controls */
body[data-stick-side="right"] .controls{flex-direction:row-reverse}
body[data-stick-side="right"] .controls-right{flex-direction:row-reverse}
body[data-stick-mode="floating"] .joystick{pointer-events:none!important;opacity:.32;transition:opacity .11s}
body[data-stick-mode="floating"][data-stick-active="true"] .joystick{
  opacity:1!important;z-index:26;filter:drop-shadow(0 0 16px rgba(126,235,220,.28))
}
body[data-stick-mode="floating"] .joystick .stick{background:linear-gradient(145deg,#a1f3db,#277a88)}
body[data-stick-mode="floating"] .joystick-cross{color:#9ce9d797}
.touch11-panel{position:absolute;inset:0;z-index:44;display:flex;align-items:center;justify-content:center;
  background:rgba(0,15,25,.87);backdrop-filter:blur(17px);padding:14px;pointer-events:auto}
.touch11-card{width:min(610px,100%);max-height:96dvh;overflow:auto;
  background:linear-gradient(139deg,#164452,#082637);
  border:1px solid rgba(169,231,213,.6);border-radius:15px;padding:clamp(18px,3vw,30px);
  box-shadow:0 28px 90px #00131fed}
.touch11-head{display:flex;justify-content:space-between;align-items:start;gap:10px}
.touch11-head span{color:#f2c991;font-size:10px;letter-spacing:.15em;font-weight:920}
.touch11-head h2{font-size:clamp(26px,4.8vw,35px);letter-spacing:-.055em;
  font-weight:980;margin:8px 0 12px;line-height:1.05}
.touch11-head button{width:40px;height:40px;min-width:40px;border-radius:9px;
  background:#205164;border:1px solid #b5dcd0;color:#f0fff9;font-size:24px}
.touch11-card p{margin:0 0 19px;font-size:12px;line-height:1.55;color:#c6ddd8}
.touch11-options{display:grid;grid-template-columns:1fr 1fr;gap:13px 14px}
.touch11-options label{display:flex;flex-direction:column;gap:7px;
  color:#ecf9ef;font-size:11px;font-weight:850}
.touch11-options select,.touch11-options input[type="range"]{
  width:100%;accent-color:#f4c083;min-height:42px;background:#113d4e;color:#e6fbf3;
  border:1px solid #b5dcd575;border-radius:8px;padding:8px;font:inherit}
.touch11-options label[for="touch11Sensitivity"]{grid-column:span 2;
  display:grid;grid-template-columns:1fr 2fr 60px;align-items:center;gap:12px}
.touch11-options label[for="touch11Sensitivity"] input{padding:0;min-height:30px}
.touch11-options output{text-align:right;color:#ffddab;font-size:14px}
.touch11-options .touch11-check{flex-direction:row;align-items:center;
  gap:9px;border-radius:8px;background:#124355ad;padding:9px 10px;line-height:1.3}
.touch11-options .touch11-check input{accent-color:#88e7cb;width:20px;height:20px;flex-shrink:0}
.touch11-info{padding:12px;margin:14px 0;border-radius:8px;border:1px solid #9ee7ce6e;
  background:#0e3a48b8;font-size:10px;line-height:1.65;color:#c0e1d9}
.touch11-info strong{color:#ffdc9b}
.touch11-actions{display:flex;gap:9px;flex-wrap:wrap}
.touch11-actions button{min-height:43px;flex:1;border-radius:8px;border:1px solid #a2e5d5;
  background:#245a55;color:#dcfff1;font-size:10px;letter-spacing:.055em;font-weight:900;padding:8px}
.touch11-actions button:last-child{background:#173c4b;border-color:#a5cbd181}
.touch11-foot{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-top:16px}
.touch11-foot small{color:#acd8d0;font-size:10px;line-height:1.5}
.touch11-foot button{border:1px solid #fbe3b4;background:linear-gradient(125deg,#ffe4ae,#f2af6d);
  color:#163a45;border-radius:9px;padding:11px 14px;font-size:11px;font-weight:950;white-space:nowrap}
@media(max-width:600px){
  .touch11-panel{padding:8px}
  .touch11-card{max-height:97dvh;padding:17px 13px;border-radius:11px}
  .touch11-head h2{font-size:26px;margin:6px 0 9px}
  .touch11-card p{font-size:11px;margin-bottom:12px}
  .touch11-options{gap:10px 8px}
  .touch11-options label{font-size:9px;gap:5px}
  .touch11-options select{font-size:10px;padding:6px;min-height:40px}
  .touch11-options label[for="touch11Sensitivity"]{
    grid-template-columns:1fr 1.25fr 50px;gap:6px}
  .touch11-options output{font-size:11px}
  .touch11-options .touch11-check{font-size:9px;padding:7px}
  .touch11-info{font-size:9px;padding:9px;margin:10px 0}
  .touch11-actions button{font-size:9px;min-height:39px;padding:7px}
  .touch11-foot{margin-top:10px}
  .touch11-foot small{font-size:9px}
  .touch11-foot button{padding:9px;font-size:10px}
  body[data-stick-side="right"] .controls{padding:0 11px}
}
@media(max-width:350px){
 .touch11-options{grid-template-columns:1fr}
 .touch11-options label[for="touch11Sensitivity"]{grid-column:span 1}
}
@media(prefers-reduced-motion:reduce){
  body[data-stick-mode="floating"] .joystick{transition:none}
}
/* Four header controls must stay fully reachable on a 320–390px phone. */
@media(max-width:600px){
 .topbar{padding:0 11px}
 .game-brandline{display:none!important}
 .official-brand{width:125px!important;max-width:32vw}
 .header-right{gap:5px}
 .header-button{width:32px;height:34px;min-width:32px;font-size:17px}
}
@media(max-width:350px){.official-brand{width:110px!important}}
