/* Desktop Duz rack: one root, 15 columns, two rows. */
@media(min-width:1000px){
html body #root#root#root main.gameScreen.duzGame .rackArea .rackBoardShell{
 width:min(100%,900px)!important;max-width:100%!important;height:146px!important;min-height:146px!important;max-height:146px!important;margin:0 auto!important;padding:6px 8px 10px!important;box-sizing:border-box!important;position:relative!important;overflow:visible!important;
 background:repeating-linear-gradient(2deg,#ffffff05 0 1px,transparent 1px 6px),linear-gradient(180deg,#9d6b3c,#70451f)!important;border:2px solid #5e3b1e!important;border-top-color:#d5a676!important;border-radius:9px!important;box-shadow:0 5px 9px #0004,inset 0 1px 3px #efd0a866!important;
}
html body #root#root#root main.gameScreen.duzGame .rackBoardShell .tileRackGrid{
 display:grid!important;width:100%!important;max-width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;grid-template-columns:repeat(15,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:8px 4px!important;margin:0!important;padding:0!important;box-sizing:border-box!important;position:relative!important;z-index:2!important;overflow:visible!important;background:none!important;border:0!important;box-shadow:none!important;
}
html body #root#root#root main.gameScreen.duzGame .rackBoardShell .rackSlot{
 height:100%!important;min-height:0!important;min-width:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;box-sizing:border-box!important;background:transparent!important;border:0!important;
}
html body #root#root#root main.gameScreen.duzGame .rackBoardShell .rackSlot>button.okeyTile.imageTile{
 position:relative!important;inset:auto!important;transform:none!important;translate:none!important;width:min(46px,100%)!important;min-width:0!important;max-width:100%!important;height:100%!important;max-height:62px!important;min-height:0!important;margin:0 auto!important;padding:0!important;border:0!important;box-sizing:border-box!important;display:block!important;
}
html body #root#root#root main.gameScreen.duzGame .rackBoardShell .rackSlot>button.okeyTile.imageTile img{width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important}
html body #root#root#root main.gameScreen.duzGame .rackBoardShell::before,html body #root#root#root main.gameScreen.duzGame .rackBoardShell::after{content:""!important;display:block!important;position:absolute!important;left:5px!important;right:5px!important;height:6px!important;background:linear-gradient(#cf9b63,#835329 45%,#4e2e15)!important;z-index:3!important;pointer-events:none!important;transform:none!important;border:0!important}
html body #root#root#root main.gameScreen.duzGame .rackBoardShell::before{top:calc(50% - 4px)!important;bottom:auto!important}
html body #root#root#root main.gameScreen.duzGame .rackBoardShell::after{bottom:3px!important;top:auto!important}
html body #root#root#root main.gameScreen.duzGame .rackHead{position:relative!important;min-height:42px!important;margin-bottom:4px!important}
html body #root#root#root main.gameScreen.duzGame .rackHead .rackTools{position:absolute!important;left:50%!important;right:auto!important;top:0!important;transform:translateX(-50%)!important;display:grid!important;grid-template-columns:repeat(3,max-content)!important;gap:8px!important;width:auto!important;margin:0!important}
html body #root#root#root main.gameScreen.duzGame .rackHead .rackTools>button{position:static!important;width:auto!important;min-height:34px!important;font-size:13px!important;padding:6px 14px!important}
html body #root#root#root main.gameScreen.duzGame .rackHead .rackTools>button:nth-child(1){grid-column:2!important;grid-row:1!important}
html body #root#root#root main.gameScreen.duzGame .rackHead .rackTools>button:nth-child(2){grid-column:1!important;grid-row:1!important}
html body #root#root#root main.gameScreen.duzGame .rackHead .rackTools>button:nth-child(3){grid-column:3!important;grid-row:1!important}
html body #root#root#root main.gameScreen.duzGame .rackHead .rackMode{display:none!important}
}

@media(min-width:1000px){
html body #root#root#root main.gameScreen.duzGame{--pc-rack-height:196px!important}
html body #root#root#root main.gameScreen.duzGame .rackArea{height:196px!important;min-height:196px!important;max-height:196px!important}
html body #root#root#root main.gameScreen.duzGame .rackArea .rackBoardShell{position:absolute!important;top:44px!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(calc(100% - 16px),900px)!important;margin:0!important}
}

/* Adjacent stones touch closely; empty rack slots keep groups separate. */
@media(min-width:1000px){
html body #root#root#root main.gameScreen.duzGame .rackBoardShell .tileRackGrid{grid-template-columns:repeat(15,minmax(0,46px))!important;justify-content:center!important;column-gap:1px!important}
html body #root#root#root main.gameScreen.duzGame .rackBoardShell .rackSlot>button.okeyTile.imageTile{width:100%!important}
}
