/* First layer gives these layout rules priority over older important layers. */
@layer gameplay208 {
 body.royal-theme.web-build199[data-screen=game] #gameScreen .table-toolbar {
  top:max(8px,env(safe-area-inset-top))!important;
  left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
  gap:8px!important;min-height:44px!important;z-index:9!important;
 }
 body.royal-theme.web-build199[data-screen=game] .table-toolbar #tableHome {flex:0 0 auto!important;margin:0!important}
 body.royal-theme.web-build199[data-screen=game] .match-tools208 {
  display:flex;flex-direction:column;align-items:flex-end;gap:10px;min-width:0;margin-left:auto;
 }
 body.royal-theme.web-build199[data-screen=game] .match-actions208 {
  display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:194px;
 }
 body.royal-theme.web-build199[data-screen=game] #gameScreen .match-actions208>button {
  position:relative!important;inset:auto!important;transform:none!important;flex:0 0 44px!important;
  width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;
  margin:0!important;padding:8px!important;box-sizing:border-box!important;pointer-events:auto!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
 }
 body.royal-theme.web-build199[data-screen=game] #gameScreen .match-actions208>button:is(.hidden,[hidden]) {display:none!important}
 body.royal-theme.web-build199[data-screen=game] #gameScreen .match-actions208>button svg {
  position:static!important;display:block!important;width:22px!important;height:22px!important;flex:none!important;
 }
 body.royal-theme.web-build199[data-screen=game] #gameScreen .table-toolbar .camera-controls {
  position:static!important;inset:auto!important;transform:none!important;margin:0!important;
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:flex-end!important;
  gap:6px!important;pointer-events:auto!important;
 }
 body.royal-theme.web-build199[data-screen=game] #gameScreen .table-toolbar .camera-controls button {
  min-width:44px!important;min-height:44px!important;height:44px!important;box-sizing:border-box!important;
  margin:0!important;padding:6px 8px!important;font-size:10px!important;
 }
 body.royal-theme.web-build199[data-screen=game].match-ended79 #gameScreen .table-toolbar {display:none!important}
 @media(max-width:599px) and (orientation:portrait) {
  /* The phone's round board lies between the action and camera rows. */
  body.royal-theme.web-build199[data-screen=game] #gameScreen #roundBoard104 {top:60px!important}
  body.royal-theme.web-build199[data-screen=game] #gameScreen .match-tools208 {gap:72px!important}
  body.royal-theme.web-build199[data-screen=game] #gameScreen .scoreboard .player {height:100%!important;min-height:0!important;box-sizing:border-box!important;padding:2px!important}
 }
 @media(max-width:380px) {
  body.royal-theme.web-build199[data-screen=game] #gameScreen #tableHome {width:44px!important;min-width:44px!important;padding:10px!important}
  body.royal-theme.web-build199[data-screen=game] #gameScreen #tableHome span {display:none!important}
 }
 @media(max-width:959px) and (orientation:landscape) {
  body.royal-theme.web-build199[data-screen=game] #gameScreen .scoreboard .player {height:100%!important;min-height:0!important;box-sizing:border-box!important;padding:2px!important}
  body.royal-theme.web-build199[data-screen=game] #gameScreen #roundBoard104 {inset:auto!important;margin:4px 6px!important;width:calc(100% - 12px)!important;box-sizing:border-box!important}
 }
}

/* v209: release feedback stays above the desktop command dock. */
@layer gameplay208 {
 @media (min-width:960px) and (hover:hover) and (pointer:fine) {
  body.royal-theme.web-build199[data-screen=game] #gameScreen #shotQuality {
   position:absolute!important;inset:auto auto calc(126px + env(safe-area-inset-bottom)) 50%!important;
   transform:translateX(-50%)!important;z-index:9!important;
   max-width:calc(100% - 32px)!important;box-sizing:border-box!important;
   padding:8px 14px!important;border:1px solid #d9bc77!important;border-radius:12px!important;
   background:#102335ed!important;color:#ffe5a0!important;font:700 14px/1.4 Arial,sans-serif!important;
   white-space:normal!important;text-align:center!important;pointer-events:none!important;
  }
  body.royal-theme.web-build199[data-screen=game] #gameScreen .tactics {bottom:calc(38px + env(safe-area-inset-bottom))!important}
  body.royal-theme.web-build199[data-screen=game] #gameScreen .tactics-panel {bottom:calc(90px + env(safe-area-inset-bottom))!important}
  body.royal-theme.web-build199[data-screen=game] #gameScreen #desktopHint108 {bottom:calc(12px + env(safe-area-inset-bottom))!important}
 }
}
