/* packages/touch-overlay-core/src/touch-overlay.css */
#touch-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
  touch-action: none;
}
#touch-overlay.is-active {
  display: block;
}
#touch-overlay .touch-overlay__grid {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 2px;
  pointer-events: none;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
#touch-overlay .touch-overlay__button {
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  border: 0;
  border-radius: 12px;
  background: #88888855;
  color: #88888888;
  font-family:
    Helvetica,
    Arial,
    sans-serif;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-appearance: none;
  padding-top: 4pt;
  padding-bottom: 4pt;
  padding-left: 0;
  padding-right: 0;
  line-height: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#touch-overlay .touch-overlay__button.is-pressed {
  background: #88888866;
  color: #88888888;
}
#touch-overlay .touch-overlay__pair {
  pointer-events: auto;
  display: grid;
  gap: 2px;
  touch-action: none;
}
#touch-overlay .touch-overlay__pair > .touch-overlay__button {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#touch-overlay .touch-overlay__pair--horizontal {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}
#touch-overlay .touch-overlay__pair--vertical {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}
#touch-overlay .touch-overlay__triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
}
#touch-overlay .touch-overlay__quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
#touch-overlay .touch-overlay__stick {
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: visible;
}
#touch-overlay .touch-overlay__stick-hint {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  white-space: normal;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.35);
  font-family:
    Helvetica,
    Arial,
    sans-serif;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 120ms ease;
}
#touch-overlay .touch-overlay__stick--hint-lower-quarter .touch-overlay__stick-hint {
  top: 75%;
}
#touch-overlay .touch-overlay__stick-base {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(136, 136, 136, 0.07);
  pointer-events: none;
}
#touch-overlay .touch-overlay__stick-thumb {
  position: absolute;
  border-radius: 50%;
  background: rgba(136, 136, 136, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
#touch-overlay .touch-overlay__touchpad {
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-family:
    Helvetica,
    Arial,
    sans-serif;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#touch-overlay .touch-overlay__touchpad--filled {
  background: rgba(136, 136, 136, 0.25);
  border: none;
}
#touch-overlay .touch-overlay__touchpad--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
#touch-overlay .touch-overlay__touchpad--transparent {
  background: transparent;
  border: none;
}
#touch-overlay .touch-overlay__touchpad--tab {
  background: transparent;
  border: none;
}
#touch-overlay .touch-overlay__touchpad-tab {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  text-align: center;
  padding: 6px 0;
  border-radius: 0 0 12px 12px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top: 0;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
#touch-overlay .touch-overlay__touchpad--anywhere {
  display: none;
  pointer-events: none;
}

/* apps/quake-web-runner/src/touch-bootstrap.css */
#touch-overlay.quake-gameplay-minimal .touch-overlay__button {
  background: transparent;
  color: transparent;
  border: 0;
  text-shadow: none;
}
#touch-overlay.quake-gameplay-minimal .touch-overlay__pair > .touch-overlay__button {
  background: transparent;
  color: transparent;
  border: 0;
}
#touch-overlay.quake-gameplay-minimal .touch-overlay__stick {
  border: 0;
}
#touch-overlay.quake-gameplay-minimal .touch-overlay__stick-hint {
  opacity: 0 !important;
}
#touch-overlay.quake-gameplay-minimal:not(.quake-show-gameplay-hints) .touch-overlay__stick-hint {
  opacity: 0 !important;
}
#touch-overlay.quake-gameplay-minimal .touch-overlay__touchpad {
  color: transparent;
  border-color: transparent;
  background: transparent;
}
#touch-overlay.quake-gameplay-minimal .touch-overlay__touchpad::before {
  content: "";
}
#touch-overlay.quake-gameplay-minimal .touch-overlay__touchpad-tab {
  opacity: 0;
  border-color: transparent;
}
#touch-overlay.quake-gameplay-minimal.quake-show-gameplay-hints .touch-overlay__button {
  background: transparent;
  color: #a8a8a8cc;
  border: 1px dashed #ffffff66;
}
#touch-overlay.quake-gameplay-minimal.quake-show-gameplay-hints .touch-overlay__pair > .touch-overlay__button {
  background: transparent;
  color: #a8a8a8cc;
  border: 1px dashed #ffffff66;
}
#touch-overlay.quake-gameplay-minimal.quake-show-gameplay-hints .touch-overlay__stick {
  border: 1px dashed #ffffff66;
}
#touch-overlay.quake-gameplay-minimal.quake-show-gameplay-hints .touch-overlay__stick-hint {
  opacity: 1 !important;
  color: #d0d0d0cc;
}
#touch-overlay.quake-gameplay-minimal.quake-show-gameplay-hints .touch-overlay__touchpad {
  color: #d0d0d0cc;
  border: 1px dashed #ffffff66;
  background: transparent;
}
#touch-overlay.quake-gameplay-minimal.quake-show-gameplay-hints .touch-overlay__touchpad::before {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #d0d0d0cc;
  font-family:
    Helvetica,
    Arial,
    sans-serif;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
#touch-overlay.quake-gameplay-minimal.quake-show-gameplay-hints .touch-overlay__touchpad-tab {
  opacity: 1;
  border-color: #ffffff66;
  background: transparent;
}
