/* Run with the Bulls - styles. Everything is scoped to #bull-run so it can't leak into the page. */
#bull-run {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 24px auto;
  align-self: center;     /* stays centred inside flex-column parents */
  justify-self: center;   /* ...and inside grid parents */
  float: none;
  font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
  color: #000;
  box-sizing: border-box;
}
#bull-run .br-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 500;
  background: #fff;
  border: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
#bull-run .br-canvas:focus, #bull-run .br-canvas:focus-visible { outline: none; }
/* Visible focus ring for keyboard users only (the script adds .br-kb when focus arrives by keyboard) */
#bull-run.br-kb .br-canvas:focus { outline: 3px solid #000; outline-offset: 3px; }
/* Touch controls: two rows, centred under the game (move buttons on top, jump and somersault below) */
#bull-run .br-pad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: calc(100% - 32px);   /* keeps a 16px margin either side on narrow screens */
  max-width: 420px;
  margin: 12px auto 0;
}
#bull-run .br-pad button {
  padding: 24px 4px;
  font: inherit;
  font-weight: bold;
  font-size: 15px;
  color: #000;
  background: #FFD700;
  border: 2px solid #000;
  border-radius: 8px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
#bull-run .br-pad button:active { background: #fdf400; }
#bull-run .br-hint { text-align: center; font-size: 17px; margin-top: 6px; color: #000; }
/* Touch buttons only on touch screens; hint line only where there is a keyboard */
@media (hover: hover) and (pointer: fine) { #bull-run .br-pad { display: none; } }
@media (hover: none) { #bull-run .br-hint { display: none; } }

/* Text for search engines and for visitors without JavaScript */
#bull-run .br-fallback { display: block; width: 100%; height: auto; }
#bull-run .br-about { font-size: 16px; line-height: 1.5; margin: 12px 0 0; color: #000; }
/* Spoken announcements: invisible on screen, read by screen readers */
#bull-run .br-live {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
