/* v171: localized on-board rotation; transparent fill, legible symbols. */
html body[data-playgame="pentago"] .pen-quadrant{position:relative!important}
html body[data-playgame="pentago"] #gameRoot .pen-overlay171{position:absolute!important;inset:0!important;z-index:8;display:flex!important;align-items:center;justify-content:center;gap:6px!important;padding:6px!important;pointer-events:none;background:transparent!important;transform:translateZ(55px)}
html body[data-playgame="pentago"] #gameRoot .pen-overlay171 button{pointer-events:auto;flex:1;min-width:0!important;min-height:44px!important;width:auto!important;height:auto!important;padding:10px 3px!important;display:flex!important;flex-direction:column;align-items:center;gap:2px!important;background:rgba(255,201,60,.35)!important;box-shadow:none!important;border:1px solid rgba(255,236,169,.7)!important;color:#06283b!important;text-shadow:0 0 3px #fff,0 0 6px #fff!important;border-radius:10px!important;font-size:clamp(18px,2vw,28px)!important;line-height:1.1!important}
html body[data-playgame="pentago"] #gameRoot .pen-overlay171 button b{font-size:inherit!important}
html body[data-playgame="pentago"] #gameRoot .pen-overlay171 button small{display:none!important}
html body[data-playgame="pentago"] #gameRoot .pen-overlay171 button:focus-visible{outline:3px solid #fff!important;outline-offset:2px}
html:is([data-device="phone"],[data-device="tablet"]) body[data-playgame="pentago"] #gameRoot .pen-overlay171 button{font-size:20px!important;padding:8px 2px!important}
html body[data-playgame="cin-damasi"] #gameRoot{overflow-anchor:none}
html body[data-playgame="cin-damasi"] .board-viewport47 canvas{display:block;width:100%!important;height:100%!important}
html[data-device="phone"] body .unified-header43{background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important}
/* Phone tower: measurements above the scene, actions directly below. */
html[data-device="phone"] body[data-playgame="denge-kulesi"] .jenga-scene-wrap{display:flex!important;flex-direction:column!important;gap:6px!important}
html[data-device="phone"] body[data-playgame="denge-kulesi"] .tower-local-controls{display:contents!important}
html[data-device="phone"] body[data-playgame="denge-kulesi"] .tower-local-controls>.atelier-label,
html[data-device="phone"] body[data-playgame="denge-kulesi"] .tower-local-controls>h2{display:none!important}
html[data-device="phone"] body[data-playgame="denge-kulesi"] .stability-value{order:0;margin:0!important;font-size:24px!important;text-align:center}
html[data-device="phone"] body[data-playgame="denge-kulesi"] .stability-track{order:0;margin:0!important;height:5px!important}
html[data-device="phone"] body[data-playgame="denge-kulesi"] .tower-local-controls>p:not(.console-note){order:1;margin:0!important;padding:6px 10px!important;font-size:13px!important;line-height:1.35!important;background:#0a3046;border-radius:10px;text-align:center}
html[data-device="phone"] body[data-playgame="denge-kulesi"] .tower-scene{order:2;min-height:440px!important;height:440px!important}
html[data-device="phone"] body[data-playgame="denge-kulesi"] .tower-local-controls>:is(.pull-track,.pull-percent,.held-wood,.placement-slots,.jenga-pull,.tap-speed49){order:3;margin:0!important}
html[data-device="phone"] body[data-playgame="denge-kulesi"] .jenga-pull{min-height:44px!important;padding:10px!important}
html[data-device="phone"] body[data-playgame="denge-kulesi"] .tap-speed49{font-size:12px!important;line-height:1.3!important;text-align:center}
html[data-device="phone"] body[data-playgame="denge-kulesi"] .console-note{order:4;margin:8px 0!important;font-size:12px!important;line-height:1.4!important}
