/* Extra theme-layer CSS (WordPress) */

/* Ensure the React app always fills the viewport and doesn't create side scroll */
html, body { overflow-x: hidden; }

/* Mobile controls overlay */
#ttg-mobile-controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  pointer-events: none; /* children enable */
  padding: 12px;
}

#ttg-mobile-controls .ttg-controls-inner {
  margin: 0 auto;
  max-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
  pointer-events: none;
}

#ttg-mobile-controls .ttg-pad,
#ttg-mobile-controls .ttg-actions {
  display: grid;
  gap: 10px;
  pointer-events: auto;
}

#ttg-mobile-controls .ttg-pad {
  grid-template-columns: 1fr 1fr 1fr;
}

#ttg-mobile-controls .ttg-actions {
  grid-template-columns: 1fr 1fr;
}

#ttg-mobile-controls button.ttg-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  border: 0;
  border-radius: 18px;
  padding: 14px 12px;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  background: rgba(0,0,0,0.82);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

#ttg-mobile-controls button.ttg-btn:active {
  transform: scale(0.98);
}

#ttg-mobile-controls .ttg-btn--ghost {
  background: rgba(255,255,255,0.86);
  color: #000;
}

#ttg-mobile-controls .ttg-hint {
  pointer-events: none;
  margin: 0 auto;
  max-width: 520px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  padding: 4px 0 0;
}

/* Hide controls on larger screens */
@media (min-width: 992px) {
  #ttg-mobile-controls { display: none; }
}

/* Give the bottom of the page room for the controls on mobile */
@media (max-width: 991px) {
  body { padding-bottom: 132px; }
}

/* Optional styling for injected logo */
.ttg-header-logo {
  height: 28px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
