/* Narrow (phone / single-column) layout and the 'back to wheel' bar. */

/* narrow (single-column) layout: the wheel stays on screen; choosing a page scrolls its content to the top.
   Once the wheel has scrolled out of view a full-width bar (clear of any camera cut-out) appears - tap it to return to the wheel */
.wtab {
  display: none;
}
.wtab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 4px #36d6ef);
}
.wtab span {
  font:
    600 15px "Exo 2",
    sans-serif;
  color: #eafaff;
  max-width: 60vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wtab b {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  transform: rotate(-90deg);
}
@media (prefers-reduced-motion: reduce) {
  .wtab {
    transition: none !important;
  }
}
footer {
  grid-column: 2;
  font-size: 13px;
  color: var(--dim);
  padding: 14px 4px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}
@media (max-width: 860px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .drumcol {
    position: relative;
    top: 0;
  }
  .dial,
  .dial3d {
    max-width: 340px;
  }
  footer {
    grid-column: 1;
  }
  .hero,
  .two,
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }
  .result {
    position: relative;
    top: 0;
  }
  .beam {
    max-width: 182px;
  }
  :root {
    --tabh: calc(env(safe-area-inset-top, 0px) + 46px);
  }
  .panel {
    min-height: calc(100vh - var(--tabh) - 16px);
  }
  main.panel,
  .qdock {
    scroll-margin-top: calc(var(--tabh) + 8px);
  }
  .wtab {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 30;
    height: var(--tabh);
    padding: env(safe-area-inset-top, 0px)
      calc(16px + env(safe-area-inset-right, 0px)) 0
      calc(16px + env(safe-area-inset-left, 0px));
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-bottom: 1.5px solid var(--line);
    background: rgba(4, 12, 18, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--cy);
    box-shadow: 0 4px 18px rgba(54, 214, 239, 0.25);
    cursor: pointer;
    transform: translateY(-105%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }
  .wtab.show {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 520px) {
  .speeds {
    grid-template-columns: minmax(0, 1fr);
  }
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
  .brand span {
    font-size: 17px;
  }
  .fl-icon span {
    display: none;
  }
}
