/* style.css - mantendo visual original com melhorias estruturais */
:root{
  --bg:#000;
  --card:#0b0b0b;
  --accent:#00ff00;
  --text:#dfefff;
  --muted:#9aaec2;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  background-color: var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  align-items:center;
  justify-content:center;
}

main#app{
  width:100%;
  max-width:980px;
  margin:24px;
  background:rgba(0,0,0,0.35);
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,0.6);
  overflow:hidden;
}

.screen{display:none; padding:18px 22px; min-height:70vh; margin: 18px auto}
.screen.active{display:block}
#username-input{background: transparent;
  border: 1px solid rgba(0, 255, 0, 0.3);
  color: #00ff00;
  font-family: inherit;
  font-size: 1em;
  padding: 10px;
  border-radius: 6px;
  outline: none;
  text-align: center;
  width: 60%;
  transition: 0.3s;
  margin-top: 10px;
}
#username-input:focus{border-color: #8bff5e; box-shadow: 0 0 12px rgba(0,255,0,0.3)}
#username-submit{margin-top:12px}

header{background:rgba(0, 0, 0, 0.03); padding:14px 18px; border-bottom:1px solid rgba(0, 0, 0, 0.03)}
header h1{margin:0; font-size:18px; letter-spacing:1px; color:var(--accent)}

.camera-container{
    margin: 18px auto;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1)

}
.camera-wrap{display:flex; align-items:center; justify-content:center; padding:18px;}
video{width:100%; max-height:60vh; border-radius:6px; background:#222; border: 2.5px solid #00ff00;}
.camera-info{padding:12px; text-align:center}

.btn{
  padding:10px 16px; border-radius:8px; font-weight:700;
  cursor:pointer; margin-top:8px;
    background-color: #000000;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
    border-style: solid;
    border-color: #00ff00;
    border-width: 1px;
    max-width: 30vw;
}

.btn:hover{
    background-color: #00ff00;
    color: #000;
    box-shadow: 0 0 15px #00ff00;
}
.btn:active{ color: #00ff00; background-color: #020202; border: 1px solid #00ff00;}

.hint{color:var(--muted); font-size:13px; margin-top:20px}

#enigma-container{max-width:720px; margin:18px auto; text-align:center; position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  align-items: center;
  max-width: 450px;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.1);
  display: flex;
  flex-direction: column;}
#enigma-title{color:var(--accent); margin-bottom:6px;}
#enigma-question{font-size:21px; color:var(--text); margin-bottom:12px}
#enigma-input{background: transparent;
  border: 1px solid rgba(0, 255, 0, 0.3);
  color: #00ff00;
  font-family: inherit;
  font-size: 1em;
  padding: 10px;
  border-radius: 6px;
  outline: none;
  text-align: center;
  width: 40%;
  transition: 0.3s;
  margin-top: 2vh;
  margin-bottom: 4vh;}
  #enigma-input:focus{border-color: #8bff5e;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.3);}
.feedback{height:22px; margin-top:8px; color:#b6ffb6}
.progress{color:var(--muted); margin-top:6px}

.final-content{display:flex; flex-direction: column; gap:18px; align-items:center; padding:18px}
.final-image{width:160px; height:160px; object-fit:contain; border-radius:8px; background:linear-gradient(180deg,#012 0,#013 100%); border:1px solid rgba(255,255,255,0.02)}
.final-text{color:var(--text); line-height:1.45}

@media(max-width:720px){
  .final-content{flex-direction:column; text-align:center}
  #enigma-input{width:90%}
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
}

.enigma-img {
  display: block;
  margin: 20px auto;
  max-width: 250px;
  border: 2px solid #00ff00;
  border-radius: 8px;
}
.final-photo img{
  max-width: 20vw;
}

.easteregg{
  font-size: 16px;
  text-align: center;
  color: #00ff00;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 5;
  animation: fadeIn 0.5s ease;
}

.modal-content {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #00ff00;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  max-width: 800px;
  width: 80%;
  text-align: center;
  position: relative;
}

.modal video {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #00ff00;
}
 .assinatura {
  color: #00ff00;
  margin-top: 30px;
  border-top: 1px solid rgba(0, 255, 0, 0.3);
  padding-top: 15px;
  font-size: 0.9em;
  opacity: 0.8;
  }

     .close-btn {
       position: absolute;
       top: -1px;
       right: 6px;
       color: #00ff00;
       font-size: 1.5em;
       cursor: pointer;
       transition: 0.3s;
     }
  
     .close-btn:hover {
       color: #00ffaa;
     }
     #segredo{
      background-color: #000;
      color:#000
     }