/* App mode for the games (www/bw-app-mode.js): the back control and safe areas. */
.bw-back { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; text-decoration: none;
  background: rgba(10, 8, 6, .72); border: 1px solid rgba(255, 211, 107, .55); color: #ffd36b;
  font: 700 .8rem/1 system-ui, 'Segoe UI', Roboto, sans-serif; letter-spacing: .04em; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.bw-back:hover, .bw-back:focus-visible { background: rgba(40, 26, 8, .9); outline: none; border-color: #ffd36b; }
/* Take the Rock: the back control sits in the HUD's lower row, across from the sound switch. */
.ttr-hud .bw-back { position: absolute; left: 10px; bottom: -4px; padding: 4px 10px; font-size: .74rem; }
html.bw-app .ttr-hud { padding-left: calc(env(safe-area-inset-left) + 14px); padding-right: calc(env(safe-area-inset-right) + 14px); }
html.bw-app .ttr-hud .bw-back { left: calc(env(safe-area-inset-left) + 10px); }
html.bw-app .ttr-sound { right: calc(env(safe-area-inset-right) + 10px); }
/* The Brass Seal: the back control replaces the brand link; links that leave the app are hidden. */
.rc-top .bw-back { margin-right: auto; }
html.bw-app .rc-top { padding-top: calc(env(safe-area-inset-top) + 9px); }
html.bw-app .rc { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
html.bw-app .rc-foot { display: none; }
