/* One viewport-based brand and menu for all Retrobot page layouts. */
@import url('https://fonts.googleapis.com/css2?family=Exo:ital,wght@1,500&display=swap');

[data-rb-legacy-nav], [data-rb-legacy-logo] {
  visibility: hidden !important;
  pointer-events: none !important;
}
body[data-rb-page="writing"] .glyphs { visibility: hidden; }

body[data-rb-page] { padding-bottom: 88px; }

.rb-red-logo {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  top: calc(88px + env(safe-area-inset-top));
  height: min(607px, calc(100svh - 180px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  aspect-ratio: 58 / 607;
  display: block;
  z-index: 200;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
}
.rb-red-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

nav.rb-bottom-nav {
  box-sizing: border-box;
  position: fixed;
  z-index: 200;
  left: 50vw;
  top: calc(100svh - 64px - env(safe-area-inset-bottom));
  bottom: auto;
  transform: translateX(-50%);
  width: min(580px, calc(100vw - 24px));
  height: 44px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 3px;
  border: 1.5px solid #c63845;
  border-radius: 999px;
  background: rgba(9, 10, 28, .74);
  box-shadow: 0 2px 12px #0005;
  line-height: normal;
}
nav.rb-bottom-nav a {
  box-sizing: border-box;
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: italic 500 15px/1.2 'Exo', Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 3px #000;
  white-space: nowrap;
}
nav.rb-bottom-nav a:hover,
nav.rb-bottom-nav a[aria-current="page"] { background: #993939; color: #fff; }
nav.rb-bottom-nav a:focus-visible, .rb-red-logo:focus-visible {
  outline: 2px solid #c2f4ff;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  nav.rb-bottom-nav a { font-size: 12px; }
}
@media (max-width: 360px) {
  nav.rb-bottom-nav a { font-size: 11px; }
}
@media (max-height: 420px) {
  .rb-red-logo { top: 68px; height: calc(100svh - 148px); }
  nav.rb-bottom-nav { top: calc(100svh - 54px - env(safe-area-inset-bottom)); }
}
