* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100vh;
  background: #000000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.container {
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: 20px;
}

.band-buttons {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  gap: 10px;
}

.band-btn {
  padding: 8px 12px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  color: white;
  background-color: rgba(90,162,255,0.18);
  border: 1px solid rgba(90,162,255,0.45);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  flex: 1;
  max-width: 120px;
}

.band-btn:hover {
  background-color: rgba(90,162,255,0.28);
}

.band-btn:active {
  transform: translateY(1px);
}

.camera-frame {
  position: relative;
  width: 90%;
  max-width: 400px;
  max-height: 70vh;
  background: #3a3f47;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  margin: 20px 0;
  contain: layout style paint;
  display: flex;
  align-items: center;
  justify-content: center;
}

video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  z-index: 10;
}

.guide {
  width: 20%;
  height: 13%;
  border: 2px solid rgba(90,162,255,0.85);
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.25);
}

.hint {
  position: absolute;
  bottom: -35px;
  left: 0;
  right: 0;
  padding: 8px 10px;
  font-size: 12px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: rgba(232,238,252,0.85);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  pointer-events: none;
}

.action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

button {
  padding: 12px 24px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: white;
  background-color: rgba(90,162,255,0.18);
  border: 1px solid rgba(90,162,255,0.45);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: rgba(90,162,255,0.28);
}

button:active {
  transform: translateY(1px);
}

.display-section {
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: auto;
}

#capturedImage {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

.band-btn:hover {
  background-color: rgba(90,162,255,0.28);
}

.band-btn:active {
  transform: translateY(1px);
}
