*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Arial,sans-serif;

  background-image:
    url("https://pialadunia2026.betcash303boss.online/bg.png");

  background-size:cover;

  background-position:center;

  background-repeat:no-repeat;

  min-height:100vh;

  color:white;
}

.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.65);
}

.container{
  position:relative;
  z-index:2;
  max-width:700px;
  margin:auto;
  padding:30px 20px;
}

.logo{
  width:180px;
  display:block;
  margin:auto;
  margin-bottom:20px;
}

h1{
  text-align:center;
  font-size:36px;
  margin-bottom:10px;
}

.subtitle{
  text-align:center;
  margin-bottom:30px;
  color:#facc15;
  font-size:18px;
}

.login-box{
  background:rgba(0,0,0,0.55);
  padding:20px;
  border-radius:20px;
  margin-bottom:30px;
}

.login-box input{
  width:100%;
  padding:16px;
  border:none;
  border-radius:14px;
  margin-bottom:15px;
  font-size:16px;
}

button{
  width:100%;
  padding:16px;
  border:none;
  border-radius:14px;
  background:#22c55e;
  color:white;
  font-size:18px;
  font-weight:bold;
  cursor:pointer;
  transition:0.3s;
}

button:hover{
  opacity:0.9;
}

.match-card{
  background:rgba(0,0,0,0.55);
  border-radius:18px;
  padding:20px;
  margin-bottom:20px;
}

.match-header{
  text-align:center;
  margin-bottom:15px;
  line-height:1.7;
}

.match-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.team{
  flex:1;
  text-align:center;
  font-weight:bold;
}

.vs{
  font-weight:bold;
}

.score-input{
  width:60px;
  height:60px;
  border:none;
  border-radius:14px;
  text-align:center;
  font-size:24px;
  font-weight:bold;
}

.score-input:disabled{
  background:#9ca3af;
  color:#111827;
  cursor:not-allowed;
  opacity:0.8;
}

.closed{
  margin-top:15px;
  text-align:center;
  color:#f87171;
  font-weight:bold;
}

.final-score{
  margin-top:10px;
  text-align:center;
  color:#4ade80;
  font-weight:bold;
}

.submit-btn{
  margin-top:20px;
  margin-bottom:40px;
}

.leader-item{
  background:rgba(0,0,0,0.55);;
  padding:15px;
  border-radius:14px;
  margin-bottom:12px;
  display:flex;
  justify-content:space-between;
}

.rules{
  margin-top:40px;
  background:rgba(0,0,0,0.55);
  padding:20px;
  border-radius:18px;
}

.rules ol{
  margin-top:15px;
  padding-left:20px;
}

.rules li{
  margin-bottom:12px;
  line-height:1.6;
}

.hidden{
  display:none;
}

.popup{
  position:fixed;
  top:50%;
  left:50%;

  transform:
    translate(-50%, -50%)
    scale(0.8);

  min-width:320px;
  max-width:90%;

  padding:24px 30px;

  border-radius:20px;

  background:rgba(255,255,255,0.18);

  background:rgba(0,0,0,0.55);

  border:1px solid rgba(255,255,255,0.25);

  box-shadow:
    0 10px 40px rgba(0,0,0,0.35);

  color:white;

  font-size:20px;

  font-weight:700;

  text-align:center;

  line-height:1.5;

  opacity:0;

  z-index:99999;

  transition:0.3s ease;
}

.popup.show{
  opacity:1;

  transform:
    translate(-50%, -50%)
    scale(1);
}

@media(max-width:600px){

  h1{
    font-size:28px;
  }

  .team{
    font-size:14px;
  }

  .score-input{
    width:50px;
    height:50px;
    font-size:20px;
  }

}
@media(max-width:768px){

  .container{
    padding:20px 14px;
  }

  .logo{
    width:140px;
  }

  h1{
    font-size:26px;
    line-height:1.3;
  }

  .subtitle{
    font-size:15px;
    line-height:1.5;
    margin-bottom:24px;
  }

  .login-box{
    padding:16px;
    border-radius:18px;
  }

  .login-box input{
    padding:14px;
    font-size:15px;
  }

  button{
    padding:15px;
    font-size:16px;
    border-radius:14px;
  }

  .match-card{
    padding:16px;
    border-radius:18px;
  }

  .match-header{
    font-size:14px;
    line-height:1.8;
  }

  .match-row{
    gap:6px;
  }

  .team{
    font-size:13px;
    line-height:1.4;
  }

  .vs{
    font-size:14px;
  }

  .score-input{
    width:52px;
    height:52px;
    font-size:20px;
    border-radius:12px;
  }

  .leader-item{
    padding:14px;
    font-size:14px;
    border-radius:14px;
  }

  .rules{
    padding:18px;
  }

  .rules h2{
    font-size:20px;
  }

  .rules li{
    font-size:14px;
    line-height:1.7;
  }

  .popup{

    width:88%;

    min-width:auto;

    padding:20px;

    font-size:16px;

    border-radius:18px;
  }
}
