/* v1.3.6: playable Tetris-like board and large accessible controls */
#drop .drop-play-layout{display:grid;grid-template-columns:minmax(0,1fr) 70px;align-items:stretch;gap:9px;width:min(100%,390px);margin:8px auto 12px;flex:0 0 auto;min-width:0}
#drop .drop-wrap{display:block;min-width:0;width:100%;max-width:none;margin:0;align-self:stretch}
#drop .drop-board{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:repeat(18,minmax(0,1fr));width:100%;max-width:none;aspect-ratio:10 / 18;min-width:0;gap:1px;padding:4px;margin:0 auto;border-radius:13px;overflow:hidden;box-sizing:border-box;touch-action:none}
#drop .drop-board>div{min-width:0;min-height:0;width:100%;height:100%;aspect-ratio:auto;border-radius:2px}
#drop .drop-buttons{display:flex;flex-direction:column;justify-content:center;gap:8px;width:100%;margin:0;padding:0;min-width:0}
#drop .drop-buttons .btn{min-height:58px;flex:1 1 0;font-size:clamp(19px,5vw,26px);padding:5px 0;border-radius:13px;touch-action:manipulation}
#drop .drop-buttons .btn:active{background:#277fb0;transform:scale(.96)}
#drop #dropStart,#drop #dropNew{min-height:52px}
#drop .drop-board .filled{box-shadow:inset 0 1px 2px #fff5}
@media(max-width:360px){#drop .drop-play-layout{grid-template-columns:minmax(0,1fr) 57px;gap:6px}#drop .drop-buttons .btn{min-height:52px}}
/* Connect Four: use the entire column of discs as an additional hit area */
#connect4 .connect4-board{width:min(100%,510px);max-width:510px;margin:0 auto;align-self:center}
#connect4 .connect4-cell{display:block;border:0;padding:0;cursor:pointer;touch-action:manipulation}
#connect4 .connect4-cell:disabled{cursor:default;opacity:1}
#connect4 .connect4-cell:not(:disabled):active{outline:3px solid #bff5ff;outline-offset:0}
#connect4 .connect4-buttons{width:min(100%,510px);max-width:510px;padding:0;margin:5px auto 12px;align-self:center}
#connect4 .connect4-buttons button{font-size:clamp(11px,3vw,16px);line-height:1.1;min-height:58px;padding:6px 0;font-weight:900;border:2px solid #78b2de;border-radius:10px}
#connect4 .connect4-buttons button:disabled{opacity:.42}
/* Magnet Lab: directional arrows represent rover motion in both polarities. */
#magnet .lab-magnet-button{font-size:clamp(14px,3.8vw,18px);font-weight:900;min-height:58px;line-height:1.25}
#magnet .lab-magnet-button.top,#magnet .lab-magnet-button.bottom{font-size:16px}
#magnet .lab-polarity .btn{min-height:54px}
