* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #14213d 0%, #05070d 60%, #020307 100%);
  color: #ecf4ff;
}

#game-root {
  width: 100%;
  height: 100%;
}

.site-home-link {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 12;
  padding: 8px 10px;
  border: 1px solid rgba(157, 220, 255, 0.45);
  border-radius: 999px;
  background: rgba(6, 14, 30, 0.85);
  color: #d6ebff;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-home-link:hover {
  border-color: rgba(168, 231, 255, 0.65);
  color: #ffffff;
}

#hud {
  position: fixed;
  top: 14px;
  left: 14px;
  width: min(460px, calc(100vw - 28px));
  padding: 12px 14px;
  border: 1px solid rgba(157, 220, 255, 0.35);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(10, 19, 42, 0.85), rgba(6, 12, 27, 0.74));
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

h1 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7de0ff;
}

p {
  margin: 4px 0;
}

#stats {
  font-size: 16px;
}

#controls {
  font-size: 13px;
  color: #c9d9f3;
}

#input-status {
  min-height: 18px;
  font-size: 12px;
  color: #84ffd3;
}

#audio-status {
  min-height: 18px;
  font-size: 12px;
  color: #8fdbff;
}

#status {
  min-height: 20px;
  font-weight: 700;
  color: #ffe17e;
}

#camera-wrap {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: min(300px, 42vw);
  padding: 8px 8px 6px;
  border: 1px solid rgba(157, 220, 255, 0.45);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(6, 14, 30, 0.9), rgba(10, 23, 47, 0.8));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

#camera-wrap.hidden {
  display: none;
}

#camera-stage {
  position: relative;
  width: 100%;
}

#camera-feed {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  transform: scaleX(-1);
  background: #050912;
}

#camera-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  transform: scaleX(-1);
  pointer-events: none;
}

#camera-hint {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #a7e7ff;
}
