
:root{
  --w: 480px;
  --cream: #f6e7bf;
  --yellow: #ffee73;
  --pinkBg:#f6d6e8;
  --greenBg:#cfe9b9;
  --ink:#4d2b2b;
  --shadowHard: -1px 2px 5px rgba(0,0,0,.38);
  --shadowSoft: -1px 5px 5px rgba(0,0,0,.20);
  --transition-duration: 0.4s;
  --transition-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Mais suave */
}

*{ box-sizing:border-box; }
html,body{ height:100%; overflow-x:hidden; }
body{
  margin:0;
  font-family:"Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
}

.hidden{ display:none !important; }
.sour400{ font-family:"Sour Gummy", system-ui; font-weight:400; }
.sour500{ font-family:"Sour Gummy", system-ui; font-weight:500; }

/* ====== SPLASH ====== */
.splash{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background-image: url("../imgs/splash.jpg");
  overflow:hidden;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.splash.fade-out{
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}
.splashBg{
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.6), transparent 55%),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.45), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,.35), transparent 55%);
  opacity:.9;
}
.splashCanvas{
  position:absolute; inset:0;
}
.splashBtn{
  position:relative;
  z-index:2;
  font-family:"Sour Gummy", system-ui;
  font-weight:400;
  font-size:42px;
  margin-top: 150px; /* MOVIDO 150px PARA BAIXO */
  transition: transform 0.2s ease;
  animation: splashBtnPulse 2s ease-in-out infinite;
}
@keyframes splashBtnPulse{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.05); }
}
.splashBtn:hover{
  animation: none;
  transform: scale(1.08);
}
.splashBtn:active{
  transform: scale(0.95);
}

/* ====== PHONE ====== */
.phone{
  width: var(--w);
  max-width: var(--w);
  margin:0 auto;
  min-height:100vh;
  background-image: url("../imgs/bg02.jpg");
  position:relative;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.phone.visible{
  opacity: 1;
  transform: translateY(0);
}

/* ====== TOPBAR ====== */
.topbar{
  padding: 10px 14px 8px;
  z-index:50;
}

.toprow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.brandLogo{
  width:auto;
  display:block;
}

.topIcons{
  display:flex;
  align-items:center;
  gap:10px;
}

.iconBtn{
  width:46px;height:46px;
  border-radius:14px;
  border:0;
/*  background: rgba(255,255,255,0.5); */
  cursor:pointer;
  display:grid;
  place-items:center;
  user-select:none;
  transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.iconBtn::after{
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b9d, #ffaa00);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.iconBtn.active::after{
  transform: translateX(-50%) scaleX(1);
}
.iconBtn.active{
 /* background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18); */
  transform: scale(1.35);
}
.iconBtn:hover:not(.active){
  transform: translateY(-2px);
  background: rgba(255,255,255,0.8);
}
.iconBtn:active{
  transform: scale(0.95);
}
.iconBtn img{
  width:34px;height:44px;
  object-fit:contain;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.12));
  transition: transform 0.2s ease;
}
.iconBtn:hover img{
  transform: scale(1.1);
}

/* ====== SISTEMA DE TELAS ====== */
.screens-container{
  position: relative;
  min-height: calc(100vh - 70px);
}

.screen{ 
  padding: 0 14px 18px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.screen.active{
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Animações de entrada MAIS SUAVES */
.screen.entering-from-right{
  animation: slideInRight 0.5s ease-out forwards;
}

.screen.entering-from-left{
  animation: slideInLeft 0.5s ease-out forwards;
}

.screen.exiting-to-left{
  animation: slideOutLeft 0.35s ease-in forwards;
}

.screen.exiting-to-right{
  animation: slideOutRight 0.35s ease-in forwards;
}

@keyframes slideInRight{
  0%{
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(60px);
  }
  100%{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
}

@keyframes slideInLeft{
  0%{
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translateX(-60px);
  }
  100%{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft{
  0%{
    opacity: 1;
    transform: translateX(0);
  }
  100%{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-40px);
  }
}

@keyframes slideOutRight{
  0%{
    opacity: 1;
    transform: translateX(0);
  }
  100%{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(40px);
  }
}

/* ====== ANIMAÇÕES DOS ELEMENTOS - ESTRELINHAS ====== */
#screenStars.active .heroYellow{
  animation: fadeSlideDown 0.5s ease-out forwards;
  animation-delay: 0.05s;
  opacity: 0;
}

@keyframes fadeSlideDown{
  0%{
    opacity: 0;
    transform: translateY(-30px);
  }
  100%{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards de critério - alternando esquerda/direita */
#screenStars.active .critCard{
  opacity: 0;
}
#screenStars.active .critCard:nth-child(odd){
  animation: slideFromLeft 0.45s ease-out forwards;
}
#screenStars.active .critCard:nth-child(even){
  animation: slideFromRight 0.45s ease-out forwards;
}
#screenStars.active .critCard:nth-child(1){ animation-delay: 0.1s; }
#screenStars.active .critCard:nth-child(2){ animation-delay: 0.15s; }
#screenStars.active .critCard:nth-child(3){ animation-delay: 0.2s; }
#screenStars.active .critCard:nth-child(4){ animation-delay: 0.25s; }
#screenStars.active .critCard:nth-child(5){ animation-delay: 0.3s; }

@keyframes slideFromLeft{
  0%{
    opacity: 0;
    transform: translateX(-50px);
  }
  100%{
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromRight{
  0%{
    opacity: 0;
    transform: translateX(50px);
  }
  100%{
    opacity: 1;
    transform: translateX(0);
  }
}

/* Bottom actions */
#screenStars.active .bottomActions{
  animation: fadeSlideUp 0.4s ease-out forwards;
  animation-delay: 0.35s;
  opacity: 0;
}

@keyframes fadeSlideUp{
  0%{
    opacity: 0;
    transform: translateY(30px);
  }
  100%{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== ANIMAÇÕES - RESULTADOS ====== */
#screenResults.active .pinkWrap{
  animation: slideFromLeft 0.5s ease-out forwards;
  animation-delay: 0.05s;
  opacity: 0;
}

#screenResults.active .greenWrap{
  animation: slideFromRight 0.5s ease-out forwards;
  animation-delay: 0.15s;
  opacity: 0;
}

#screenResults.active .scoreCard{
  opacity: 0;
  animation: fadeScaleIn 0.4s ease-out forwards;
}
#screenResults.active .scoreCard:nth-child(1){ animation-delay: 0.2s; }
#screenResults.active .scoreCard:nth-child(2){ animation-delay: 0.28s; }
#screenResults.active .scoreCard:nth-child(3){ animation-delay: 0.36s; }

@keyframes fadeScaleIn{
  0%{
    opacity: 0;
    transform: scale(0.9);
  }
  100%{
    opacity: 1;
    transform: scale(1);
  }
}

/* ====== SEM ANIMAÇÕES NA CONFIG ====== */
#screenConfig.active .configWrap,
#screenConfig.active .configCard{
  /* Sem animações - aparece direto */
  opacity: 1;
  transform: none;
  animation: none;
}

/* ====== HERO AMARELO ====== */
.heroYellow{
  background: var(--yellow);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadowSoft);
  position:relative;
  overflow: visible; /* IMPORTANTE: permite dropdown aparecer */
  border: 2px solid rgba(160,110,20,.25);
  z-index: 10;
}
.starBurstBg{
  position:absolute; 
  top: -20px;
  left: -20px;
  right: -20px;
  height: 150px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.6), transparent 45%),
    repeating-conic-gradient(from 0deg, rgba(255,210,60,.75) 0 10deg, transparent 10deg 20deg);
  opacity:.25;
  animation: rotateBurst 25s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rotateBurst{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.heroTitleImg{
  display:block;
  max-width: 100%;
  height: auto;
  margin: 6px 0 14px;
  position:relative;
  z-index:1;
}
.comicTitle{
  position:relative;
  display:inline-block;
  font-weight: 900;
  font-size: 34px;
  line-height:1.02;
  color:#fff;
  text-shadow: 0 4px 0 #5a1d1d, 0 8px 0 rgba(0,0,0,.20);
  -webkit-text-stroke: 8px #7a1c1c;
  paint-order: stroke fill;
  transform: rotate(-10deg);
  margin: 6px 0 14px;
}

/* ====== DROPDOWN ESTILIZADO ====== */
.selectorBox{
  background: linear-gradient(135deg, #ffd77a 0%, #ffcf5b 50%, #ffc233 100%);
  border: 3px solid #c07b22;
  border-radius: 16px;
  padding: 0;
  box-shadow: var(--shadowHard), inset 0 2px 4px rgba(255,255,255,0.5);
  margin: 0 0 10px;
  position:relative;
  z-index: 100; /* Maior que outros elementos */
}

.custom-select-wrapper{
  position: relative;
  width: 100%;
}

.custom-select-trigger{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
}

.custom-select-trigger:active{
  transform: scale(0.98);
}

.custom-select-value{
  font-weight: 900;
  font-size: 22px;
  color: #5a2a2a;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.custom-select-arrow{
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 16px solid #b0601b;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.18));
  transition: transform 0.3s ease;
}

.custom-select-wrapper.open .custom-select-arrow{
  transform: rotate(180deg);
}

/* Lista de opções - CORRIGIDO Z-INDEX */
.custom-select-options{
  position: absolute;
  top: calc(100% + 8px);
  left: -3px;
  right: -3px;
  background: linear-gradient(180deg, #fff9e6 0%, #fff4d4 100%);
  border: 3px solid #c07b22;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.8);
  z-index: 9999; /* BEM ALTO para ficar acima de tudo */
}

.custom-select-wrapper.open .custom-select-options{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option{
  padding: 14px 16px;
  font-weight: 800;
  font-size: 20px;
  color: #5a2a2a;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  border-bottom: 2px dashed rgba(192,123,34,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-select-option:last-child{
  border-bottom: none;
}

.custom-select-option::before{
  content: '⭐';
  font-size: 18px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.custom-select-option:hover{
  background: linear-gradient(90deg, #ffe9a8 0%, #ffd966 100%);
  padding-left: 20px;
}

.custom-select-option:hover::before{
  opacity: 1;
  transform: scale(1);
}

.custom-select-option.selected{
  background: linear-gradient(90deg, #ffdb70 0%, #ffc933 100%);
  color: #4a1f1f;
}

.custom-select-option.selected::before{
  content: '✨';
  opacity: 1;
  transform: scale(1);
  animation: sparkle 0.8s ease infinite;
}

@keyframes sparkle{
  0%, 100%{ transform: scale(1) rotate(0); }
  50%{ transform: scale(1.15) rotate(10deg); }
}

/* Animação de entrada das opções */
.custom-select-wrapper.open .custom-select-option{
  animation: optionSlideIn 0.25s ease forwards;
  opacity: 0;
}
.custom-select-wrapper.open .custom-select-option:nth-child(1){ animation-delay: 0.02s; }
.custom-select-wrapper.open .custom-select-option:nth-child(2){ animation-delay: 0.06s; }
.custom-select-wrapper.open .custom-select-option:nth-child(3){ animation-delay: 0.1s; }

@keyframes optionSlideIn{
  from{ opacity: 0; transform: translateX(-15px); }
  to{ opacity: 1; transform: translateX(0); }
}

/* Esconder select nativo */
.selectorBox select.native-select{
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.caret{ display: none; }

.dateRow{
  background:#fff7cf;
  border: 2px solid rgba(160,110,20,.35);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadowHard);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight: 900;
  color:#5a2a2a;
  position:relative;
  z-index:1;
}
.label{ opacity:.9; }

.btnMini{
  display:flex; align-items:center; gap:8px;
  cursor:pointer;
  user-select:none;
  transition: transform 0.2s ease;
}
.btnMini:hover{
  transform: scale(1.05);
}
.btnMini:active{
  transform: scale(0.95);
}

.outroBtn{
  background:#fff7cf;
  border: 2px solid rgba(160,110,20,.35);
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 6px 0 rgba(0,0,0,.12);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.outroBtn:hover{
  box-shadow: 0 3px 0 rgba(0,0,0,.12);
  transform: translateY(3px);
}
.calendar{
  width:22px;height:22px;
  border-radius:5px;
  position:relative;
  background:#fff;
}

/* ====== CRITÉRIOS ====== */
.criteria{
  margin-top: 14px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.critCard{
  background: #ffe45b;
  border-radius: 18px;
  padding: 14px;
  border: 3px solid #c07b22;
  box-shadow: var(--shadowHard);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  overflow:hidden;
  transition: transform 0.2s ease;
}

.critCard:hover{
  transform: scale(1.01);
}

.critHead{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  width:100%;
  min-width:0;
}
.critHead img{
  display:block;
  height: 55px; 
  width:auto;
  max-width: 75%;
  object-fit:contain;
}

.rateBox{
  background:#fff7cf;
  border-radius: 14px;
  border: 2px solid rgba(160,110,20,.35);
  padding: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  align-self:flex-end;
  width: min(320px, 100%);
}

.rateBtn{
  width: 82px;
  height: 64px;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  display:grid;
  place-items:center;
  user-select:none;
  transition: transform 0.15s ease;
  position: relative;
}
.rateBtn:hover{
  transform: scale(1.12);
}
.rateBtn:active{
  transform: scale(0.92);
}
.rateBtn img{
  max-height: 75px;
  width:auto;
  display:block;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.12));
  transition: transform 0.2s ease;
}

.rateBtn.selected img{
  animation: rateWobble 0.4s ease;
}

@keyframes rateWobble{
  0%{ transform: scale(1); }
  30%{ transform: scale(1.25) rotate(-8deg); }
  60%{ transform: scale(1.15) rotate(5deg); }
  100%{ transform: scale(1) rotate(0); }
}

/* ====== BOTÕES GRANDES ====== */
.bottomActions{
  display:flex;
  gap:14px;
  padding: 14px 14px 18px;
}
.btnBig{
  width:150px;
  height: 64px;
  border-radius: 14px;
  border: 3px solid rgba(90,42,42,.35);
  font-family:"Sour Gummy", system-ui;
  font-weight:900;
  font-size: 40px;
  cursor:pointer;
  box-shadow: var(--shadowHard);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btnBig::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.4s ease;
}
.btnBig:hover::before{
  left: 100%;
}
.btnBig:hover{
  transform: translateY(-3px);
  box-shadow: -1px 6px 12px rgba(0,0,0,.35);
}
.btnBig:active{
  transform: translateY(1px);
  box-shadow: -1px 2px 4px rgba(0,0,0,.35);
}
.btnBig.clear{
  background: #d7e8ff;
  color:#4c7fa8;
}
.btnBig.apply{
  background: linear-gradient(#eab068, #cc7d2e);
  color:#fff;
  text-shadow: 0 3px 0 rgba(0,0,0,.18);
}

/* ====== RESULTADOS ====== */
.pinkWrap{
  background: var(--pinkBg);
  padding: 14px 14px 18px;
  border-bottom: 6px solid rgba(0,0,0,.08);
  border-radius: 18px;
}
.resultsTitleImg{
  display:block;
  max-width:100%;
  height:auto;
  margin: 4px 0 8px;
}
.comicTitlePink{
  display:inline-block;
  font-weight: 900;
  font-size: 44px;
  color:#fff;
  text-shadow: 0 4px 0 #5a1d1d, 0 10px 0 rgba(0,0,0,.18);
  -webkit-text-stroke: 10px #7a1c1c;
  paint-order: stroke fill;
  margin: 8px 0 10px;
}

.filterRow{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 10px;
  font-weight:900;
}
.filterRow .line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.pillInput{
  flex:1;
  background:#fff;
  border-radius: 12px;
  border: 2px solid rgba(122,28,28,.35);
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  box-shadow: 0 8px 0 rgba(0,0,0,.10);
}
.rightMini{
  display:flex; align-items:center; gap:8px;
  color:#7a1c1c;
  user-select:none;
  cursor:pointer;
  transition: transform 0.2s ease;
}
.rightMini:hover{
  transform: scale(1.05);
}
.miniSelect{
  border: 3px solid rgba(122,28,28,.35);
  border-radius: 12px;
  padding: 8px 12px;
  font-size:15px;
  font-weight:900;
  background: linear-gradient(180deg, #fff 0%, #fff0f5 100%);
  outline:none;
  box-shadow: 0 6px 0 rgba(0,0,0,.10);
  appearance:none;
  -webkit-appearance:none;
  text-align:center;
  min-width:72px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #7a1c1c;
}
.miniSelect:hover{
  transform: scale(1.03);
}
.miniSelect:focus{
  transform: scale(1.05);
  box-shadow: 0 4px 0 rgba(0,0,0,.10), 0 0 0 3px rgba(255,100,150,0.3);
}

.scoreLabel{
  margin-top: 14px;
  font-weight:900;
  font-size: 18px;
  color:#5a1d1d;
}
.scoreCards{
  margin-top: 10px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.scoreCard{
  background: linear-gradient(#f7d7ee, #efb2da);
  border-radius: 18px;
  border: 2px solid rgba(122,28,28,.35);
  padding: 12px;
  box-shadow: var(--shadowHard);
  transition: transform 0.2s ease;
}

.scoreCard:hover{
  transform: scale(1.01);
}

.scoreTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.45);
  box-shadow: 0 8px 0 rgba(0,0,0,.08);
  border: 2px solid rgba(255,255,255,.5);
}
.nameSide{
  display:flex;
  align-items:center;
  gap:10px;
  letter-spacing:.5px;
}
.nameSide .girlName{
  font-family:"Sour Gummy", system-ui;
  font-weight:600;
  font-size:35px;
}
.littleheart{
  width:26px;height:26px;
  object-fit:contain;
  filter: drop-shadow(0 5px 0 rgba(0,0,0,.10));
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.1); }
}

.bigPoints{
  font-weight:900;
  font-size: 54px;
  color:#ff4f98;
  text-shadow: 0 4px 0 #7a1c1c, 0 10px 0 rgba(0,0,0,.12);
  line-height:1;
}

.faltamLabel{
  margin-top:10px;
  font-weight:900;
  color:#7a1c1c;
  opacity:.75;
}
.faltamRow{
  margin-top: 8px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items:flex-start;
  font-weight:900;
}
.faltamBox{
  background: rgba(255,255,255,.55);
  border-radius: 14px;
  border: 2px solid rgba(122,28,28,.28);
  padding: 10px 8px;
  text-align:center;
  box-shadow: 0 8px 0 rgba(0,0,0,.08);
  transition: transform 0.2s ease;
  cursor: default;
}
.faltamBox:hover{
  transform: scale(1.05);
}
.faltamBox .n{
  font-size: 28px;
  color:#7a1c1c;
  text-shadow: 0 2px 0 rgba(255,255,255,.25);
}
.faltamBox small{
  display:block;
  opacity:.8;
  margin-top: 2px;
}

/* ====== BRINDE ====== */
.greenWrap{
  background: var(--greenBg);
  padding: 18px 14px 22px;
  border-radius: 18px;
  margin-top: 14px;
}
.sectionTitle{
  text-align:center;
  font-weight:900;
  font-size: 32px;
  color:#154f18;
  text-shadow: 0 3px 0 rgba(255,255,255,.35);
  margin: 4px 0 12px;
}
.brindeTabs{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-bottom: 12px;
}
.brTab{
  border: 2px solid rgba(21,79,24,.35);
  background:#e9f8da;
  color:#1c6c20;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight:900;
  cursor:pointer;
  box-shadow: 0 8px 0 rgba(0,0,0,.10);
  user-select:none;
  opacity:.55;
  transition: all 0.2s ease;
}
.brTab:hover{
  opacity: 0.8;
  transform: translateY(-2px);
}
.brTab:active{
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0,0,0,.10);
}
.brTab.active{ 
  opacity:1; 
  background:#d8f4c4;
  transform: scale(1.05);
}

.brindeCard{
  height:150px;
  background: #b7e19a;
  border-radius: 18px;
  padding: 12px;
  display:flex;
  gap:12px;
  align-items:center;
  border: 2px solid rgba(21,79,24,.25);
  box-shadow: var(--shadowHard);
  margin: 0 auto 14px;
  transition: transform 0.3s ease;
}
.brindeCard:hover{
  transform: scale(1.02);
}
.brindeImg{
  width:130px; height:130px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid rgba(21,79,24,.25);
  box-shadow: 0 8px 0 rgba(0,0,0,.08);
  object-fit:cover;
  transition: transform 0.3s ease;
}
.brindeCard:hover .brindeImg{
  transform: rotate(-3deg) scale(1.05);
}
.brindeText{
  width:245px;
  font-weight:700;
  color:#185a1b;
  line-height:1.25;
  font-size: 20px;
  font-family:"Sour Gummy", system-ui;
}

.whoTitle{
  text-align:center;
  font-weight:900;
  font-size: 26px;
  color:#154f18;
  margin: 10px 0 10px;
  text-shadow: 0 3px 0 rgba(255,255,255,.35);
}
.winnerList{
  border-radius: 16px;
  overflow:hidden;
  border: 2px solid rgba(21,79,24,.25);
  box-shadow: var(--shadowHard);
}
.winnerRow{
  background: rgba(255,255,255,.35);
  padding: 14px 14px;
  font-weight:900;
  font-size: 26px;
  color:#154f18;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom: 2px solid rgba(21,79,24,.15);
  transition: all 0.2s ease;
}
.winnerRow:hover{
  background: rgba(255,255,255,.55);
  padding-left: 18px;
}
.winnerRow:last-child{ border-bottom:0; }
.winnerRow .left{
  display:flex;
  align-items:center;
  gap:10px;
}
.winStars{
  width:34px;height:34px;
  object-fit:contain;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.10));
  animation: starSpin 2s ease-in-out infinite;
}

@keyframes starSpin{
  0%, 100%{ transform: rotate(0deg) scale(1); }
  50%{ transform: rotate(10deg) scale(1.1); }
}

.progressStars{
  display:flex;
  gap:6px;
  align-items:center;
  font-family:"Sour Gummy", system-ui;
  font-weight:600;
  font-size:25px;
}
.progressStars img{
  width:22px;height:22px;
  object-fit:contain;
  opacity:.25;
  transition: all 0.3s ease;
}
.progressStars img.lit{
  opacity: 1;
}

/* ====== CONFIG - SEM ANIMAÇÕES ====== */
.configWrap{
  background:#fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadowSoft);
  border: 2px solid rgba(90,42,42,.12);
}
.configTitle{
  font-weight:900;
  font-size: 28px;
  margin-bottom: 10px;
}
.configCard{
  margin-top: 12px;
  background:#fff7cf;
  border-radius: 18px;
  padding: 12px;
  border: 2px solid rgba(160,110,20,.25);
  box-shadow: 0 8px 0 rgba(0,0,0,.10);
}

.configH{
  font-weight:900;
  margin-bottom: 10px;
}
.configGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px 12px;
  align-items:center;
}
.cfgLabel{ font-weight:900; }
.cfgInput{
  width:100%;
  padding: 10px 10px;
  border-radius: 12px;
  border: 2px solid rgba(90,42,42,.25);
  font-weight:900;
  outline:none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cfgInput:focus{
  border-color: #c07b22;
  box-shadow: 0 0 0 3px rgba(192,123,34,0.2);
}
.configActions{
  display:flex;
  gap:10px;
  margin-top: 10px;
  justify-content:flex-end;
}
.btnSmall{
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 2px solid rgba(90,42,42,.25);
  font-weight:900;
  cursor:pointer;
  box-shadow: 0 8px 0 rgba(0,0,0,.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btnSmall:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(0,0,0,.10);
}
.btnSmall:active{
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0,0,0,.10);
}
.btnSmall.clear{ background:#d7e8ff; color:#4c7fa8; }
.btnSmall.apply{ background: linear-gradient(#eab068, #cc7d2e); color:#fff; }

.rewardTabs{
  display:flex;
  gap:10px;
  margin-bottom:10px;
}
.tabMini{
  flex:1;
  height:40px;
  border-radius:12px;
  border:2px solid rgba(90,42,42,.18);
  font-weight:900;
  cursor:pointer;
  background:#fff;
  opacity:.65;
  box-shadow: 0 8px 0 rgba(0,0,0,.08);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tabMini:hover{
  opacity: 0.85;
}
.tabMini.active{ 
  opacity:1; 
  background:#ffe9a8;
  transform: scale(1.02);
}

.rewardEditor{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.rewardUpload{ flex:1; min-width: 210px; }
.rewardTextBox{ flex:2; min-width: 210px; }
.upLabel{ font-weight:900; margin-bottom:6px; }
.cfgFile{ width:100%; }
.upHint{ font-size:12px; opacity:.75; margin-top:6px; }
.cfgTextarea{
  width:100%;
  min-height: 110px;
  padding:10px;
  border-radius:12px;
  border: 2px solid rgba(90,42,42,.25);
  font-weight:700;
  outline:none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cfgTextarea:focus{
  border-color: #c07b22;
  box-shadow: 0 0 0 3px rgba(192,123,34,0.2);
}
.configNote{
  margin-top: 12px;
  font-size: 12px;
  opacity:.75;
}

/* ====== MODAL ====== */
.modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal.visible{
  opacity: 1;
  visibility: visible;
}
.modalBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(3px);
}
.modalCard{
  position:relative;
  z-index:1;
  width:min(420px, calc(100% - 28px));
  background:#fff;
  border-radius: 18px;
  padding: 14px;
  border: 2px solid rgba(90,42,42,.18);
  box-shadow: 0 16px 0 rgba(0,0,0,.18);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}
.modal.visible .modalCard{
  transform: scale(1) translateY(0);
}
.modalTitle{ font-weight:900; font-size:18px; margin-bottom:10px; }
.modalDate{
  width:100%;
  height:46px;
  border-radius: 12px;
  border: 2px solid rgba(90,42,42,.25);
  padding: 0 10px;
  font-weight:900;
  font-size:22px;
  outline:none;
  transition: border-color 0.2s ease;
}
.modalDate:focus{
  border-color: #c07b22;
}
.modalActions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top: 12px;
}

/* ====== TOAST ====== */
.toast{
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  bottom: 18px;
  width: min(440px, calc(100% - 28px));
  background:#fff;
  border-radius: 14px;
  border: 2px solid rgba(90,42,42,.25);
  box-shadow: 0 14px 0 rgba(0,0,0,.16);
  padding: 12px 14px;
  font-weight:900;
  color:#5a2a2a;
  z-index:2000;
  opacity: 0;
  transition: all 0.35s ease;
}
.toast.show{ 
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ====== LOADING ====== */
.loading-indicator{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  z-index: 3000;
  overflow: hidden;
}
.loading-indicator::after{
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #ff6b9d, #ffee73, #6bff9d, transparent);
  animation: loadingSlide 1.2s ease-in-out infinite;
}
.loading-indicator.hidden::after{
  animation: none;
}

@keyframes loadingSlide{
  0%{ left: -60%; }
  100%{ left: 100%; }
}

@media (max-width:380px){
  .rateBtn{ width:74px; }
  .bigPoints{ font-size: 44px; }
  .winnerRow{ font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================
   DROPDOWNS (Resultados + Brinde)
   ========================= */

.pillSelect{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: #5a2b2b;
  padding: 10px 12px;
  cursor: pointer;
  appearance: none;
}

/* setinha do select (opcional, simples) */
.pillInput{
  position: relative;
}
.pillInput::after{
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .55;
  font-size: 16px;
}

.brinde-period-row{
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.brindeSelect{
  width: min(420px, 92%);
  border: 2px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.65);
  font-size: 16px;
  font-weight: 700;
  color: #1f4d2c;
  cursor: pointer;
  appearance: none;
}

/* ===== Patch: iconBtn como <a> (sem sublinhado) ===== */
.iconBtn{ text-decoration:none; color:inherit; }
.iconBtn:focus{ outline:none; }
/* =========================
   REWARDS (NOVO LAYOUT - premios.html/premios.css)
   ========================= */
#rewardsWrap{ padding-top: 6px; }

.rewardsHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.premiosTabs{ margin-left:auto; }

.premioSection{ width:100%; }
.premioCard{
  display:flex;
  gap:12px;
  align-items:center;
  background: linear-gradient(to bottom, rgba(173,246,242,.30), #adf6f2);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadowSoft);
  margin: 10px 0 8px 0;
}

.premioHoras .premioCard{
  background: linear-gradient(to bottom, rgba(234,209,237,.30), rgba(234,209,237,1));
}

.premioImgWrap{
  flex: 0 0 84px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.premioImg{
  width: 78px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: -2px 2px 3px rgba(128,128,128,1);
  background: #fff;
}

.premioTxtWrap{ flex:1; }
.premioTxt{
  font-family: 'Sour Gummy', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #2d2d2d;
  text-shadow: -1px 1px 0 rgba(255,255,255,.65);
}

/* Grid horas */
.horasGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin: 8px 0 12px 0;
}

.horaKidCard{
  background: rgba(255,255,255,.55);
  border: 4px solid #fff;
  border-radius: 18px;
  padding: 10px 8px;
  box-shadow: var(--shadowSoft);
  text-align:center;
}

.horaKidTop{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-bottom: 6px;
}

.horaKidImg{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background:#fff;
}

.horaKidName{
  font-family: 'Sour Gummy', system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.horaKidBottom{
  display:flex;
  justify-content:center;
  align-items:baseline;
  gap:6px;
  flex-wrap:wrap;
}

.horaKidLabel,
.horaKidUnit{
  font-family:'Roboto Condensed', system-ui, sans-serif;
  font-weight:700;
  font-size:14px;
  color: var(--ink);
  opacity: .9;
}

.horaKidVal{
  font-family:'Sour Gummy', system-ui, sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: #5c2a7c;
  text-shadow: -2px 2px 3px rgba(128,128,128,1);
}

@media (max-width: 420px){
  .horasGrid{ grid-template-columns: 1fr; }
}

/* Config: tipo de prêmio */
.rewardModeBox{ margin-top: 10px; }
.cfgSelect{
  width: 100%;
  border: 2px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 8px 10px;
  font-family:'Roboto Condensed', system-ui, sans-serif;
  font-weight:700;
  background:#fff;
}
.rewardHoursGrid{
  display:none; /* JS controla */
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-top: 10px;
}
.rewardHoursGrid .cfgHint{
  grid-column: 1 / -1;
  font-size: 12px;
  opacity: .8;
  margin-top: 2px;
}
