*{
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

body{
  margin:0;
  position:relative;
  color:white;
  height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
}

body::before{
  content:"";
  position:absolute;
  inset:0;
  background:url("back.webp") center/cover no-repeat;
  filter:blur(2px) brightness(.4);
  transform:scale(1.1);
  z-index:-1;
}

.hidden{
  display:none !important;
}

.container{
  width:100%;
  max-width:1200px;
  text-align:center;
}

#startBtn,
#spinAgain,
#saveSelection,
#resetBtn{
  padding:15px 40px;
  font-size:18px;
  background:#1f8cff;
  border:none;
  border-radius:6px;
  color:white;
  cursor:pointer;
}

.roulette-wrapper{
  position:relative;
  overflow:hidden;
  width:100%;
  height:260px;
  margin:40px 0;
}

.indicator{
  position:absolute;
  top:0;
  bottom:0;
  width:4px;
  background:gold;
  left:50%;
  transform:translateX(-50%);
  z-index:10;
}

.roulette{
  display:flex;
  gap:20px;
}

.item{
  width:200px;
  height:240px;
  background:#111;
  border-radius:8px;
  overflow:hidden;
  flex-shrink:0;
}

.item img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.winner{
  box-shadow:
    0 0 30px gold,
    0 0 60px rgba(255,215,0,.8);
}

/* ================= SELECTOR ================= */

#openSelector{
  position:fixed;
  top:20px;
  left:20px;
  z-index:999;
  background:#111;
  color:white;
  border:none;
  padding:12px 18px;
  border-radius:10px;
  cursor:pointer;
}

.card-selector{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.9);
  z-index:9999;
  overflow:auto;
  padding:30px;
}

.cards-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
  gap:15px;
  margin-top:20px;
}

.selector-actions{
  display:flex;
  gap:15px;
  margin-top:20px;
  justify-content:center;
}

.selector-actions button{
  padding:12px 20px;
  border:none;
  border-radius:10px;
  background:#1f8cff;
  color:white;
  cursor:pointer;
  font-size:16px;
}

.card-option{
  background:#111;
  padding:10px;
  border-radius:12px;
  text-align:center;
  cursor:pointer;
  border:3px solid transparent;
  transition:.2s;
}

.card-option:hover{
  transform:scale(1.03);
}

.card-option img{
  width:100%;
  border-radius:8px;
  display:block;
}

.card-option.selected{
  border-color:#1f8cff;

  box-shadow:
    0 0 15px #1f8cff,
    0 0 35px rgba(31,140,255,.7);
}

.selector-box{
  max-width:1200px;
  margin:auto;
}

.selector-actions{
  position:sticky;
  top:0;
  z-index:20;

  background:rgba(0,0,0,.95);

  padding:20px 0;

  display:flex;
  justify-content:center;
  gap:15px;

  border-bottom:1px solid rgba(255,255,255,.1);
}

@keyframes popUp{
  0%{
    transform:scale(.5);
    opacity:0;
  }

  100%{
    transform:scale(1);
    opacity:1;
  }
}