* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

#eye {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  cursor: pointer;
}

#hint {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.20);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1.4s ease;
}

#hint.on { opacity: 1; }

#dot {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  z-index: 10;
  transition: background 0.4s, box-shadow 0.4s;
}

#dot.listening {
  background: rgba(40,130,255,0.95);
  box-shadow: 0 0 10px rgba(40,130,255,0.7);
  animation: blink-dot 1s ease-in-out infinite;
}

#dot.thinking {
  background: rgba(255,160,30,0.95);
  box-shadow: 0 0 10px rgba(255,160,30,0.6);
}

/* Landscape warning overlay */
#landscape-warn {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

#landscape-warn.show {
  display: flex;
}

#landscape-warn svg {
  opacity: 0.35;
  animation: rotate-hint 2s ease-in-out infinite alternate;
}

#landscape-warn p {
  font-family: -apple-system, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.28; }
}

@keyframes rotate-hint {
  from { transform: rotate(-8deg); }
  to   { transform: rotate(8deg); }
}

#transcript {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  z-index: 10;
  text-align: center;
  width: 90vw;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#transcript.visible {
  opacity: 1;
}

#response {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  pointer-events: none;
  z-index: 10;
  text-align: center;
  width: 90vw;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#response.visible {
  opacity: 1;
}
