@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  background:
  radial-gradient(circle at top,#243bff 0%,#0b0b24 40%,#050510 100%);
  color:white;
  font-family:'Press Start 2P', cursive;
  min-height:100vh;
  padding:15px;
  overflow-x:hidden;
}

.container{
  max-width:1400px;
  margin:auto;
}

.title{
  text-align:center;
  color:#ffe44d;
  font-size:30px;
  margin-bottom:25px;
  text-shadow:
  4px 4px #000,
  0 0 15px #ffe44d;
}

.grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:20px;
}

.card{
  background:rgba(0,0,0,.65);
  border:4px solid white;
  border-radius:22px;
  padding:18px;
  box-shadow:
  0 0 0 4px #1df7ff,
  0 0 25px #1df7ff;
}

.placar{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:20px;
}

.team{
  background:#111;
  border:3px solid white;
  border-radius:14px;
  padding:15px;
  text-align:center;
  transition:.3s;
}

.team.active{
  background:#ffe44d;
  color:black;
  transform:scale(1.03);
  box-shadow:0 0 20px #ffe44d;
}

.score{
  font-size:30px;
  margin-top:15px;
}

.board{
  display:grid;
  grid-template-columns:repeat(10,1fr);
  gap:6px;
}

.house{
  height:60px;
  border-radius:12px;
  border:3px solid white;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  text-shadow:2px 2px #000;
}

.house:nth-child(5n+1){
  background:#ff3d67;
}

.house:nth-child(5n+2){
  background:#39d353;
}

.house:nth-child(5n+3){
  background:#2f81f7;
}

.house:nth-child(5n+4){
  background:#ffe44d;
  color:black;
  text-shadow:none;
}

.house:nth-child(5n){
  background:#bc61ff;
}

.pin{
  width:18px;
  height:18px;
  border-radius:50%;
  border:2px solid white;
  position:absolute;
  bottom:5px;
  animation:pulse .8s infinite alternate;
}

.pin.homens{
  background:#1df7ff;
  left:6px;
}

.pin.mulheres{
  background:#ff4fd8;
  right:6px;
}

@keyframes pulse{
  from{
    transform:scale(1);
  }

  to{
    transform:scale(1.25);
  }
}

.panel{
  display:flex;
  flex-direction:column;
  gap:12px;
}

button,
select{
  width:100%;
  padding:16px;
  border:none;
  border-radius:14px;
  cursor:pointer;
  font-family:'Press Start 2P', cursive;
  font-size:11px;
  background:#ffe44d;
  color:black;
  border:3px solid white;
  box-shadow:4px 4px black;
  transition:.15s;
  position:relative;
  overflow:hidden;
}

button:hover{
  transform:translateY(-2px);
}

button:active{
  transform:translate(3px,3px);
  box-shadow:1px 1px black;
}

button:disabled{
  opacity:.85;
  cursor:not-allowed;
}

button.loading::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  height:6px;
  width:0%;
  background:white;
  animation:loadbar 1.2s infinite linear;
}

@keyframes loadbar{
  0%{
    width:0%;
  }

  50%{
    width:80%;
  }

  100%{
    width:100%;
  }
}

.blue{
  background:#1df7ff;
}

.red{
  background:#ff3d67;
  color:white;
}

.green{
  background:#39d353;
}

.big{
  text-align:center;
  line-height:1.8;
  min-height:60px;
  color:#ffe44d;
  text-shadow:3px 3px black;
}

.dice{
  width:130px;
  height:130px;
  margin:auto;
  background:white;
  color:black;
  border-radius:22px;
  border:6px solid #ffe44d;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:62px;
  box-shadow:
  0 0 30px #ffe44d,
  inset 0 0 10px rgba(0,0,0,.3);
  animation:glow 1s infinite alternate;
}

@keyframes glow{
  from{
    box-shadow:0 0 15px #ffe44d;
  }

  to{
    box-shadow:0 0 35px #ffe44d;
  }
}

.timer{
  text-align:center;
  font-size:64px;
  color:#1df7ff;
  text-shadow:
  4px 4px black,
  0 0 18px #1df7ff;
}

.msg{
  font-size:10px;
  line-height:1.8;
  text-align:center;
  min-height:45px;
}

.qr-img{
  width:220px;
  background:white;
  padding:10px;
  border-radius:12px;
}

.phone-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
}

.phone-card{
  width:100%;
  max-width:520px;
  text-align:center;
}

.secret{
  margin-top:35px;
  font-size:38px;
  line-height:1.5;
  color:#ffe44d;
  text-shadow:
  4px 4px black,
  0 0 12px #ffe44d;
  word-break:break-word;
}

.waiting{
  font-size:16px;
  line-height:1.8;
}

.stage{
  display:none;
}

.stage.active{
  display:block;
}

.intro-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:20px;
}

.status-ok{
  color:#39d353;
  text-shadow:0 0 10px #39d353;
}

.status-wait{
  color:#ffe44d;
  text-shadow:0 0 10px #ffe44d;
}

.big-center{
  text-align:center;
  font-size:18px;
  line-height:1.8;
  margin:20px 0;
  color:#ffe44d;
  text-shadow:3px 3px black;
}

img{
  image-rendering:pixelated;
}

::-webkit-scrollbar{
  width:10px;
}

::-webkit-scrollbar-track{
  background:#111;
}

::-webkit-scrollbar-thumb{
  background:#1df7ff;
  border-radius:10px;
}

@media(max-width:900px){
  .grid{
    grid-template-columns:1fr;
  }

  .house{
    height:45px;
    font-size:8px;
  }

  .title{
    font-size:18px;
  }

  .timer{
    font-size:48px;
  }

  .dice{
    width:110px;
    height:110px;
    font-size:50px;
  }

  .intro-grid{
    grid-template-columns:1fr;
  }

  .secret{
    font-size:28px;
  }
}