* { box-sizing: border-box; }

body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  background:#0f0f14;
  color:#ffffff;
}

.container{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:24px;
  text-align:center;
}

h1{
  color:#c084fc;
  margin-bottom:8px;
}

.subtitle{
  max-width:420px;
  opacity:0.9;
  margin-bottom:24px;
}

button{
  background:#820e5e;
  color:#fff;
  border:none;
  padding:14px 28px;
  font-size:16px;
  border-radius:10px;
  cursor:pointer;
}

button:hover{
  background:#9b1570;
}

.footer{
  margin-top:32px;
  font-size:13px;
  opacity:0.6;
}
.hidden{ display:none; }

.camera{
  width: min(780px, 100%);
  margin-top: 22px;
  text-align: center;
}

.hint{
  margin: 0 0 12px 0;
  opacity: 0.85;
  font-size: 14px;
}

.videoWrap{
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

video{
  width: 100%;
  height: auto;
  display: block;
}

.actions{
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.btnSecondary{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}
.btnSecondary:hover{
  background: rgba(255,255,255,0.08);
}
.videoWrap{
  width: min(900px, 92vw);
  margin: 18px auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

#video{
  width: 100%;
  height: auto;
  display: block;
  transform: scaleX(-1); /* espelho (selfie) */
}

#overlay{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.result{
  width: min(900px, 92vw);
  margin: 12px auto 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.videoWrap{
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 16px auto 0;
  border-radius: 14px;
  overflow: hidden;
}

#video{
  width: 100%;
  height: auto;
  display: block;
}

#overlay{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
