
/* Estatísticas públicas abaixo da capa */
.community-stats{
  width:min(900px,100%);
  margin:-15px auto 34px;
  text-align:center;
  color:#dcecff;
  font-size:clamp(10px,1.45vw,13px);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  line-height:1.6;
  opacity:.95;
}
.community-stats strong{
  color:#ffe495;
  font-size:1.08em;
}

/* Checkbox de explicação */
.explanation-toggle{
  width:min(1250px,100%);
  margin:-12px auto 28px;
  padding:10px 13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  color:#dcecff;
  font-size:11px;
  line-height:1.35;
  cursor:pointer;
  user-select:none;
}
.explanation-toggle input{
  width:17px;
  height:17px;
  margin:0;
  accent-color:#f3c65d;
  flex:0 0 auto;
}

/* Tela do livro descoberto */
.match-card{
  text-align:center;
  max-height:calc(100vh - 28px);
  overflow:auto;
}
.discovery-label{
  margin:0 0 14px!important;
  font-family:"Lucida Console",Monaco,monospace!important;
  color:#3d4c78;
  font-size:clamp(11px,2vw,15px);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.discovered-book{
  position:relative;
  width:clamp(150px,31vw,220px);
  aspect-ratio:4/5;
  margin:6px auto 18px;
}
.discovered-book-shadow{
  position:absolute;
  left:10%;
  right:-5%;
  bottom:-4%;
  height:12%;
  background:#8d7749;
  transform:skewX(-22deg);
  opacity:.35;
}
.discovered-book-pages{
  position:absolute;
  inset:8% -3% -2% 7%;
  border:5px solid #3b2b27;
  border-radius:4px 10px 10px 4px;
  background:
    repeating-linear-gradient(0deg,#f8e9bd 0 4px,#d3bd81 4px 6px);
  transform:translate(7px,8px);
  box-shadow:5px 5px 0 rgba(25,22,35,.25);
}
.discovered-book-cover{
  position:absolute;
  inset:0 5% 4% 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:5px solid #252a4c;
  border-radius:5px 9px 9px 5px;
  box-shadow:
    inset 0 0 0 4px rgba(255,255,255,.18),
    6px 6px 0 rgba(20,22,40,.24);
  color:#fff;
  text-shadow:2px 2px 0 rgba(0,0,0,.35);
  overflow:hidden;
}
.discovered-book-spine{
  position:absolute;
  left:8px;
  top:0;
  bottom:0;
  width:9px;
  background:rgba(20,20,38,.26);
  border-right:2px solid rgba(255,255,255,.18);
}
.discovered-book-cross{
  font-size:25px;
  color:#ffe495;
}
.discovered-book-cover strong{
  font-size:clamp(30px,7vw,48px);
  line-height:1;
}
.discovered-book-cover>span:last-child{
  width:82%;
  font-size:clamp(9px,2.1vw,13px);
  line-height:1.25;
  font-weight:900;
  text-transform:uppercase;
  overflow-wrap:anywhere;
}
.discovery-summary{
  margin:10px 0 0!important;
  text-align:left;
}

/* Críticas e sugestões */
.feedback-section{
  width:min(900px,calc(100% - 32px));
  margin:54px auto 44px;
  padding:clamp(17px,3vw,26px);
  background:linear-gradient(180deg,#173b78 0,#102a5f 100%);
  border-color:#173168;
  color:#fff;
}
.feedback-heading{
  text-align:center;
  margin-bottom:16px;
}
.feedback-kicker{
  display:block;
  margin-bottom:6px;
  color:#ffe495;
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
}
.feedback-heading h2{
  margin:0;
  color:#fff3c4;
  font-size:clamp(17px,3vw,23px);
}
.feedback-section textarea,
.feedback-section input{
  width:100%;
  border:2px solid #7185bf;
  border-radius:7px;
  background:#fffdf4;
  color:#182342;
  font-family:Arial,sans-serif;
  outline:none;
}
.feedback-section textarea:focus,
.feedback-section input:focus{
  border-color:#f3c65d;
  box-shadow:0 0 0 3px rgba(243,198,93,.22);
}
.feedback-section textarea{
  min-height:126px;
  resize:vertical;
  padding:13px;
  line-height:1.45;
  font-size:14px;
}
.feedback-section textarea::placeholder{
  color:#66708a;
  opacity:1;
}
.feedback-actions{
  margin-top:12px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:end;
}
.feedback-whatsapp span{
  display:block;
  margin-bottom:5px;
  color:#c9d8ff;
  font-size:10px;
  font-weight:900;
}
.feedback-whatsapp small{
  font-weight:400;
}
.feedback-whatsapp input{
  padding:11px;
}
#feedbackSubmit{
  min-width:120px;
  min-height:42px;
  padding:10px 18px;
  border:3px solid #25305a;
  border-radius:7px;
  background:#47753c;
  color:#fff;
  font-weight:900;
  box-shadow:0 4px 0 #17244f;
}
#feedbackSubmit:hover{
  transform:translateY(-1px);
  filter:brightness(1.08);
}
#feedbackSubmit:disabled{
  opacity:.65;
  cursor:wait;
}
.feedback-status{
  min-height:18px;
  margin:10px 0 0;
  color:#bdeabb;
  text-align:center;
  font-size:11px;
  font-weight:700;
}
.feedback-honeypot{
  position:absolute!important;
  left:-99999px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}

@media(max-width:700px){
  .community-stats{
    margin:-8px auto 26px;
    padding:0 8px;
    font-size:9px;
    letter-spacing:.05em;
  }
  .explanation-toggle{
    margin:-12px auto 24px;
    justify-content:flex-start;
    font-size:10px;
  }
  .match-card{
    padding:16px 12px;
  }
  .discovered-book{
    width:clamp(135px,48vw,190px);
  }
  .feedback-section{
    width:calc(100% - 20px);
    margin:36px auto 30px;
  }
  .feedback-actions{
    grid-template-columns:1fr;
  }
  #feedbackSubmit{
    width:100%;
  }
}


/* Usa a própria arte pixel dos livros na tela de descoberta. */
.discovered-book-image{
  position:relative;
  width:clamp(190px,36vw,280px);
  aspect-ratio:1/1;
  margin:4px auto 14px;
  container-type:inline-size;
}
.discovered-book-image img{
  display:block;
  width:100%;height:100%;object-fit:contain;
  image-rendering:pixelated;
  filter:drop-shadow(5px 7px 0 rgba(17,24,51,.22));
}
.discovered-book-copy{
  position:absolute;
  left:56%;top:43.5%;
  width:64%;
  transform:translate(-50%,-50%) rotate(-16deg);
  text-align:center;
  color:#ffe36a;
  font-family:"Press Start 2P","Courier New",monospace;
  font-weight:900;
  text-shadow:1px 1px 0 #6a3217,2px 2px 0 #20100a;
  display:flex;flex-direction:column;gap:6px;
}
.discovered-book-copy strong{font-size:clamp(22px,17cqi,46px);line-height:1;}
.discovered-book-copy span{font-size:clamp(8px,5.6cqi,16px);line-height:1.08;overflow-wrap:anywhere;}
@media(max-width:520px){.discovered-book-image{width:clamp(170px,58vw,235px)}}
