.graphics-fullscreen-controls {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}
.graphics-fullscreen-controls[hidden] { display: none; }
.graphics-fullscreen-controls .graphics-fullscreen-zone {
  position: relative;
  width: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 1rem;
  background: transparent;
  color: white;
  font: 600 clamp(16px, 2.5vw, 28px)/1.4 system-ui, sans-serif;
  text-align: center;
  touch-action: manipulation;
  cursor: pointer;
}
.graphics-fullscreen-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(15, 23, 42, 0.78);
  opacity: 0;
  transition: opacity 450ms ease;
  pointer-events: none;
}
.graphics-fullscreen-hint[hidden] { display: none; }
.graphics-fullscreen-zone:nth-child(2) .graphics-fullscreen-hint {
  background: rgba(30, 58, 95, 0.82);
}
.graphics-fullscreen-controls.show-hints .graphics-fullscreen-hint { opacity: 1; }
.graphics-fullscreen-controls .graphics-fullscreen-zone:focus-visible {
  outline: 2px solid white;
  outline-offset: -3px;
}
@media (prefers-reduced-motion: reduce) {
  .graphics-fullscreen-hint { transition: none; }
}

.graphics-search-overlay,
.graphics-search-error {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: min(30rem, calc(100% - 3rem));
  box-sizing: border-box;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(15,23,42,.94);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  color: #fff;
  font: 500 16px/1.5 system-ui, sans-serif;
}
.graphics-search-overlay[hidden], .graphics-search-error[hidden] { display: none; }
.graphics-search-overlay input {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid #94a3b8;
  border-radius: 0;
  padding: .4rem 0;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 20px;
}
.graphics-search-overlay input::placeholder { color: #cbd5e1; }
.graphics-search-hint { margin-top: .5rem; color: #cbd5e1; font-size: 13px; }
.graphics-search-error { width: auto; max-width: calc(100% - 3rem); text-align: center; }
