/* ---------- level complete popup (reuses the Game Over board design) ---------- */
#levelCompleteScreen{
  position:fixed;inset:0;z-index:1500;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:transparent;
  overflow:hidden;
  transition:opacity .35s ease,transform .35s ease;
}
#levelCompleteScreen::after{
  content:"";position:absolute;inset:0;
  background:rgba(0,0,0,.5);backdrop-filter:blur(3px);
}
#levelCompleteScreen.hidden{opacity:0;transform:scale(.96);pointer-events:none;}

.lc-board{
  position:relative;width:80%;max-width:350px;z-index:2;
  display:flex;flex-direction:column;align-items:center;
  opacity:0;animation:lcBoardIn .5s cubic-bezier(.34,1.56,.64,1) .05s forwards;
}
.lc-board-container{position:relative;width:100%;}
.lc-board-img{width:100%;display:block;}
@keyframes lcBoardIn{from{opacity:0;transform:translateY(24px) scale(.9);}to{opacity:1;transform:translateY(0) scale(1);}}

/* stars sit above the board, overlapping its top leafy/wood edge */
.lc-stars{
  position:relative;z-index:3;
  display:flex;align-items:flex-end;justify-content:center;
  gap:2px;width:56%;
  margin-bottom:-11%;
}
.lc-star{
  width:24%;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.5));
  opacity:0;transform:scale(0) rotate(-30deg);
  animation:lcStarPop .45s cubic-bezier(.34,1.56,.64,1) forwards;
}
.lc-star:nth-child(2){width:38%;}
.lc-star:nth-child(1){animation-delay:.18s;}
.lc-star:nth-child(2){animation-delay:.32s;}
.lc-star:nth-child(3){animation-delay:.46s;}
@keyframes lcStarPop{from{opacity:0;transform:scale(0) rotate(-30deg);}to{opacity:1;transform:scale(1) rotate(0);}}

.lc-board-content{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  z-index:2;padding:8% 10% 8%;
  font-family:"Baloo 2",sans-serif;
}

.lc-board-title{width:95%;margin-bottom:-8px;}
.lc-board-title img{width:100%;height:auto;}

.lc-score-label,.lc-high-label{
  font-size:20px;line-height:22px;font-weight:800;color:#fff;
  text-shadow:0 3px 0px rgba(0,0,0,.9);white-space:nowrap;
  font-family:"Baloo 2",sans-serif;
}
.lc-score-val,.lc-high-val{
  font-size:40px;line-height:42px;font-weight:800;color:#ffd35c;
  text-shadow:0 3px 0px rgba(0,0,0,.9);white-space:nowrap;
  font-family:"Baloo 2",sans-serif;
  margin-top:-3px;
}
.lc-divider{width:70%;max-width:200px;display:flex;justify-content:center;margin:1px 0 3px;}
.lc-divider img{width:100%;height:auto;}
.lc-high-val{margin-bottom:12px;}

.lc-btn-row{
  display:flex;align-items:center;justify-content:center;
  width:68%;z-index:2;
}
.lc-next-btn{
  border:none;background:none;padding:0;cursor:pointer;width:100%;
  opacity:0;transform:scale(0);
  animation:lcBtnPop .45s cubic-bezier(.34,1.56,.64,1) .6s forwards;
}
.lc-next-btn img{width:100%;display:block;}
@keyframes lcBtnPop{from{opacity:0;transform:scale(0);}to{opacity:1;transform:scale(1);}}
.lc-next-btn:active img{filter:brightness(.9);}
