/* The LoungeWare island's strip over the world (loungeware/strip.js): the tape's twenty slots and the LCD's line, on
   glass at the top of the screen while the visitor is in the atrium. Nothing in it is pressed. */
#lw-strip {
  position: fixed;
  z-index: 3;
  top: 18px;
  left: 50%;
  transform: translateX(calc(-50% + var(--shift, 0px) / 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 9px 12px 10px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--rim);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  pointer-events: none;
}

/* Between the name's button (or the open panel) on the left and the tickets on the right. */
#lw-strip canvas {
  display: block;
  width: clamp(240px, calc(100vw - 440px - 2 * var(--shift, 0px)), 456px);
}

#lw-strip .slots {
  height: 22px;
}

#lw-strip .lcd {
  height: 28px;
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0, 40, 20, 0.45), 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* A phone: under the name, Sound and the tickets, and short, so that on arrival it ends about where the island's plaque
   begins; the stick and the buttons are at the bottom. */
:root[data-touch="true"] #lw-strip {
  top: calc(112px + env(safe-area-inset-top));
  padding: 7px 10px 8px;
  gap: 5px;
  border-radius: 18px;
}

:root[data-touch="true"] #lw-strip canvas {
  width: min(340px, calc(100vw - 44px));
}

:root[data-touch="true"] #lw-strip .slots {
  height: 17px;
}

:root[data-touch="true"] #lw-strip .lcd {
  height: 24px;
}

/* A short screen held by touch, such as a phone on its side: the strip goes up under the name and the tickets and
   narrows, so that it stays clear of the use button over the jump. */
@media (max-height: 420px) {
  :root[data-touch="true"] #lw-strip {
    top: calc(64px + env(safe-area-inset-top));
    padding: 5px 8px 6px;
    gap: 4px;
    border-radius: 14px;
  }
  :root[data-touch="true"] #lw-strip canvas {
    width: min(300px, calc(100vw - 260px));
  }
  :root[data-touch="true"] #lw-strip .slots {
    height: 14px;
  }
  :root[data-touch="true"] #lw-strip .lcd {
    height: 18px;
  }
}
