/* CAROMY V0.1.26.5 — Practice controls, touch targets, narrow screen support.
   Visual/control layer only; physics, aim solver and bank/ball-first families unchanged. */
.practice-four-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:minmax(142px,auto) minmax(213px,auto)!important;align-items:stretch!important;}
.practice-four-grid .practice-tile {min-width:0;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;}
.practice-four-grid .practice-tile-heading {width:100%;flex-wrap:wrap!important;min-width:0;}
.caromy-thickness-stepper {width:100%;max-width:260px;min-width:0;margin:auto;display:grid;grid-template-columns:29px minmax(0,1fr) 29px;align-items:center;gap:2px;}
.thickness-tile .caromy-thickness-stepper #thVisual {width:100%!important;max-width:none!important;min-width:0!important;height:54px!important;min-height:54px!important;margin:0!important;overflow:hidden;}
.thickness-tile .caromy-thickness-stepper #thVisual svg {width:100%!important;height:48px!important;max-width:100%!important;}
.caromy-step-btn,.caromy-power-step-btn {appearance:none;min-width:0;border:1px solid #9acfc1;border-radius:9px;background:#fff;color:#087961;display:flex;align-items:center;justify-content:center;font-family:inherit;font-weight:800;box-shadow:0 1px 3px #152f2810;touch-action:manipulation;user-select:none;-webkit-user-select:none;}
.caromy-step-btn {height:34px;width:29px;font-size:14px;padding:0;}
.caromy-step-btn:active,.caromy-power-step-btn:active {background:#d9f3eb;}
.caromy-step-btn:focus-visible,.caromy-power-step-btn:focus-visible {outline:3px solid #0ba586;outline-offset:2px;}
.caromy-step-btn:disabled,.caromy-power-step-btn:disabled {opacity:.4;}
.power-tile #powerRange {width:100%!important;max-width:none!important;height:29px!important;min-height:29px!important;margin:2px 0 0!important;flex:none!important;}
.caromy-power-stepper {display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:2px;}
.caromy-power-step-btn {width:100%;min-height:37px;height:auto;padding:5px 2px;gap:3px;line-height:1.15;white-space:normal;overflow-wrap:anywhere;font-size:clamp(10px,2.9vw,13px);}
.caromy-power-step-btn span {min-width:0;}
.caromy-tip-stepper {width:min(100%,230px);min-width:0;margin:auto;display:grid;grid-template-columns:30px minmax(0,1fr) 30px;grid-template-rows:31px minmax(90px,auto) 31px;grid-template-areas:'. up .' 'left ball right' '. down .';align-items:center;justify-items:center;gap:2px;}
.caromy-tip-stepper .tip-up{grid-area:up}.caromy-tip-stepper .tip-down{grid-area:down}.caromy-tip-stepper .tip-left{grid-area:left}.caromy-tip-stepper .tip-right{grid-area:right}
.tip-tile .caromy-tip-stepper #tipCanvas {grid-area:ball;display:block;width:min(100%,128px)!important;max-width:128px!important;height:auto!important;max-height:none!important;margin:0!important;aspect-ratio:1/1!important;min-width:0;}
.tip-tile .caromy-tip-stepper .caromy-step-btn {width:30px;height:30px;}
/* The three buttons on the fourth tile remain usable regardless of added controls. */
.practice-four-grid .shoot-tile {min-height:0!important;}
@media(max-width:390px){
 .practice-four-grid {grid-template-rows:minmax(144px,auto) minmax(206px,auto)!important;gap:6px!important;}
 .caromy-thickness-stepper {grid-template-columns:27px minmax(0,1fr) 27px;gap:1px;}
 .caromy-step-btn {width:27px;height:34px;}
 .caromy-tip-stepper {grid-template-columns:27px minmax(0,1fr) 27px;grid-template-rows:29px minmax(80px,auto) 29px;gap:1px;}
 .tip-tile .caromy-tip-stepper #tipCanvas {max-width:112px!important;}
 .tip-tile .caromy-tip-stepper .caromy-step-btn {height:28px;width:27px;}
}
@media(max-width:340px){
 .caromy-power-step-btn {font-size:10px;padding:4px 1px;}
 .tip-tile .caromy-tip-stepper #tipCanvas {max-width:98px!important;}
}
