/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior: smooth;
  overflow-x:hidden;
}

/* BODY */
body{
  background:#111;
  font-family:Arial, sans-serif;
  color:white;
  overflow-x:hidden;
  width:100%;
  max-width:100vw;
}

/* HEADER */
.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;

  padding:14px 16px;

  background:#161616;
}

.logo{
  font-size:30px;
  font-weight:bold;
  line-height:1;
  white-space:nowrap;
}

.logo-moo{
  color:white;
}

.logo-bet{
  color:red;
}

/* AUTH */
.auth{
  display:flex;
  gap:10px;
  flex-shrink:0;
}

.login-btn{
  background:#2c2c2c;
  color:white;
  border:none;

  padding:10px 15px;
  min-height:42px;

  border-radius:10px;

  cursor:pointer;
  white-space:nowrap;
}

.register-btn{
  background:#ffcc00;
  color:#111;
  border:none;

  padding:10px 15px;
  min-height:42px;

  border-radius:10px;

  cursor:pointer;

  font-weight:bold;
  white-space:nowrap;
}

/* TOP BAR */
.top-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:12px 14px;

  background:#222;
}

/* Registration modal styles */
.registration-modal{
  max-width:760px;
  margin:22px auto;
  background:#fff;
  color:#222;
  border-radius:8px;
  box-shadow:0 8px 30px rgba(0,0,0,0.4);
  overflow:hidden;
}
.registration-modal .modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 22px;
  border-bottom:1px solid #e6e6e6;
}
.registration-modal h2{
  margin:0;
  font-size:18px;
  letter-spacing:1px;
}
.registration-modal .close-btn{
  background:none;
  border:none;
  font-size:18px;
  cursor:pointer;
}
.registration-modal .tabs{
  display:flex;
  gap:8px;
  padding:14px 18px;
  background:#f5f5f5;
}
.registration-modal .tab{
  background:transparent;
  border-radius:6px;
  padding:8px 14px;
  border:none;
  cursor:pointer;
  color:#555;
}
.registration-modal .tab.active{
  background:#222;
  color:#fff;
}
.registration-modal .modal-form{
  padding:18px;
}
.registration-modal .by-phone-help{
  color:#666;
  margin-bottom:12px;
}
.phone-row{
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:12px;
}
.phone-row .country{
  display:flex;
  align-items:center;
  gap:6px;
  background:#f0f0f0;
  padding:10px 12px;
  border-radius:8px;
  min-width:110px;
}
.phone-row .flag{font-size:18px}
.phone-input{
  flex:1;
  padding:12px 14px;
  border-radius:8px;
  border:1px solid #ddd;
  font-size:15px;
}
.promo input{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #ddd;
  margin-top:6px;
}

.modal-form label input,
.modal-form input[type="password"]{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #ddd;
  margin-top:6px;
}
.one-click-result{
  background:#f7f7f7;
  border:1px solid #e0e0e0;
  padding:14px 16px;
  border-radius:10px;
  margin-top:12px;
}
.one-click-result p{
  margin:10px 0;
  color:#333;
}
.hidden{
  display:none !important;
}
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:9999;
}
.popup-content{
  width:min(100%,720px);
  max-height:min(100vh, calc(100% - 48px));
  overflow:auto;
  border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,0.35);
  background:#fff;
}
.modal-open{
  overflow:hidden;
}
.login-note{
  color:#555;
  margin-top:8px;
}
.login-message{
  margin-top:14px;
  color:#d9534f;
  font-weight:600;
  text-align:center;
}
.consent{
  display:flex;
  gap:8px;
  align-items:center;
  margin:14px 0;
  color:#555;
}
.register-btn.big{
  display:block;
  width:100%;
  background:#ffcc00;
  color:#111;
  border:none;
  padding:14px 18px;
  border-radius:8px;
  font-weight:bold;
  font-size:16px;
  cursor:pointer;
}
.terms{
  font-size:12px;
  color:#777;
  margin-top:12px;
}
.have-account{
  text-align:center;
  padding:14px 0 22px;
}
.registration-modal a{color:#0066cc}


.casino-title{
  display:flex;
  align-items:center;
  gap:10px;
}

.back-btn,
.search-btn{
  width:42px;
  height:42px;

  border:none;

  border-radius:10px;

  background:#333;

  color:white;

  font-size:20px;

  cursor:pointer;
}

/* HERO */
.hero-slider{
  position:relative;

  width:100%;
  max-width:100vw;
  height:320px;

  overflow:hidden;

  padding:10px;
}

.slide{
  display:none;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
}

.slide.active{
  display:flex;
}

.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;

  border-radius:12px;
}

/* DOTS */
.dots{
  position:absolute;

  bottom:20px;
  left:50%;

  transform:translateX(-50%);

  display:flex;
  gap:8px;
}

.dot{
  width:8px;
  height:8px;

  border-radius:50%;

  background:gray;
}

.dot.active{
  background:white;
}

/* SECTION HEADER */
.section-header{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:10px 14px;
}

.section-header h2{
  font-size:20px;
}

.section-header button{
  background:none;
  border:none;

  color:white;

  font-size:14px;

  cursor:pointer;
}

/* GAMES GRID */
.games-grid{
  display:grid;

  grid-template-columns:repeat(4, minmax(0, 1fr));

  gap:8px;

  padding:0 10px 10px;
  width:100%;
  max-width:100vw;
}

.games-grid.show-more{
  max-height:620px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-right:10px;
  grid-auto-rows:minmax(0, auto);
}

.games-grid.show-more .game-card.hidden{
  display:block;
}

@media(min-width:1100px){
  .games-grid.show-more{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    max-height:420px;
  }

  .games-grid.show-more .game-card{
    height:auto;
  }

  .games-grid.show-more .game-footer{
    padding:8px;
  }

  .games-grid.show-more .game-footer p{
    font-size:12px;
  }
}

/* GAME CARD */
.game-card{
  position:relative;

  aspect-ratio:16 / 9;
  height:auto;

  overflow:hidden;

  border-radius:4px;

  background:#222;

  cursor:pointer;
}

.game-card.hidden{
  display:none;
}

.games-grid.show-more .game-card.hidden{
  display:block;
}

/* IMAGE */
.game-card img{
  width:100%;
  height:100%;

  object-fit:cover;

  transition:0.4s ease;
}

/* OVERLAY */
.overlay{
  position:absolute;

  inset:0;

  background:rgba(0,0,0,0);

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:12px;

  opacity:0;

  transition:0.4s ease;

  z-index:2;
  cursor:pointer;
  pointer-events:none;
}

.free-play{
  background:none;
  border:none;
  padding:0;
  color:white;
  font-size:18px;
  line-height:1;
  text-decoration:underline;
  text-underline-offset:4px;
  cursor:pointer;
}

/* HOVER EFFECT */
.game-card:hover img{
  filter:blur(4px);
  transform:scale(1.05);
}

.game-card:hover .overlay{
  opacity:1;
  background:rgba(0,0,0,0.45);
  pointer-events:auto;
}

.game-card.active .overlay{
  opacity:1;
  background:rgba(0,0,0,0.45);
  pointer-events:auto;
}

/* PLAY BUTTON */
.play-btn{
  background:#ffcc00;
  color:#111;

  border:none;

  min-width:160px;
  min-height:66px;
  padding:12px 28px;

  border-radius:10px;

  font-size:0;
  font-weight:bold;

  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.play-btn::before{
  content:"Play";
  font-size:24px;
  font-weight:500;
}

.play-btn::after{
  content:"";
  width:0;
  height:0;
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
  border-left:18px solid #333;
}

/* FOOTER */
.game-footer{
  position:absolute;

  bottom:0;
  left:0;

  width:100%;

  padding:10px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  background:linear-gradient(
    to top,
    rgba(0, 0, 0, 0.977),
    rgba(0, 0, 0, 0.977),
    transparent
  );

  z-index:3;
}

/* LEFT */
.game-left{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

/* ICON */
.game-icon{
  width:24px;
  height:24px;

  border-radius:5px;

  background:rgba(255,255,255,0.2);

  display:flex;
  justify-content:center;
  align-items:center;

  font-size:12px;
}

/* TEXT */
.game-footer p{
  font-size:14px;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* STAR */
.favorite{
  color:#ffcc00;
  font-size:18px;
  flex-shrink:0;
}

/* LOGIN FORM */
.login-page{
  min-height:calc(100svh - 78px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
  background:#f5f5f5;
}

.login-modal{
  width:min(100%, 520px);
  background:#fff;
  border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,0.16);
  overflow:hidden;
}

.login-modal .modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 22px;
  border-bottom:1px solid #e6e6e6;
}

.login-modal .modal-header h2{
  margin:0;
  font-size:20px;
  letter-spacing:0.6px;
}

.login-tabs{
  display:flex;
  gap:8px;
  padding:14px 18px;
  background:#f6f6f6;
}

.login-tab{
  flex:1;
  padding:12px 10px;
  border-radius:8px;
  border:none;
  background:#fff;
  color:#444;
  font-size:14px;
  cursor:pointer;
}

.login-tab.active{
  background:#1f1f1f;
  color:#fff;
}

.login-form{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:22px;
  background:transparent;
}

.login-fields{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.login-form label{
  display:block;
  font-size:14px;
  color:#333;
  margin-bottom:6px;
}

.field-panel{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.login-form input{
  width:100%;
  min-height:48px;
  padding:12px 14px;
  border:1px solid #ddd;
  border-radius:12px;
  background:#fff;
  color:#111;
  font-size:15px;
}

.login-form input:focus{
  outline:2px solid #ffcc00;
  border-color:#ffcc00;
}

.password-row{
  display:flex;
  align-items:center;
  gap:8px;
}

.password-row input{
  flex:1;
}

.password-toggle{
  width:44px;
  height:44px;
  border:none;
  border-radius:12px;
  background:#f3f3f3;
  cursor:pointer;
}

.login-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.login-actions .remember{
  display:flex;
  align-items:center;
  gap:8px;
  color:#444;
  font-size:14px;
}

.login-actions .forgot{
  color:#2b6cb0;
  text-decoration:none;
  font-size:14px;
}

.login-form .register-btn.big{
  width:100%;
  background:#ffcc00;
  color:#111;
  border:none;
  padding:14px 18px;
  border-radius:12px;
  font-weight:bold;
  font-size:16px;
}

.login-divider{
  text-align:center;
  margin:0;
  font-size:13px;
  color:#888;
}

.social-login{
  display:flex;
  justify-content:center;
  gap:12px;
}

.social-btn{
  width:44px;
  height:44px;
  border:none;
  border-radius:50%;
  background:#f3f3f3;
  color:#333;
  font-weight:bold;
  cursor:pointer;
}

.have-account{
  text-align:center;
  margin:0;
  font-size:14px;
  color:#555;
}

.have-account a{
  color:#2b6cb0;
  text-decoration:none;
}

/* MOBILE */
@media(max-width:768px){

  /* HEADER */
  .header{
    padding:10px 12px;
    gap:8px;
  }

  .logo{
    font-size:22px;
  }

  .auth{
    gap:8px;
  }

  .login-btn,
  .register-btn{
    min-height:38px;
    padding:7px 12px;
    font-size:12px;
  }

  /* TOP BAR */
  .top-bar{
    padding:10px 12px;
  }

  .casino-title h2{
    font-size:18px;
  }

  .back-btn,
  .search-btn{
    width:38px;
    height:38px;
    font-size:18px;
  }

  /* HERO */
  .hero-slider{
    height:280px;
    padding:8px;
  }

  /* SECTION HEADER */
  .section-header{
    padding:10px 12px;
  }

  .section-header h2{
    font-size:18px;
  }

  .section-header button{
    font-size:12px;
    min-height:36px;
    min-width:44px;
  }

  /* GAMES GRID */
  .games-grid{
    grid-template-columns:repeat(2,1fr);
    gap:8px;
    padding:0 8px 8px;
    overflow:hidden;
  }

  .games-grid.show-more{
    grid-template-columns:repeat(2,1fr);
    max-height:calc(100svh - 280px);
    overflow-y:auto;
    padding-right:8px;
  }

  .game-card{
    aspect-ratio:16 / 10;
    height:auto;
    border-radius:8px;
  }

  .game-card img{
    height:100%;
  }

  /* OVERLAY */
  .overlay{
    border-radius:8px;
  }

  /* PLAY BUTTON */
  .play-btn{
    min-height:36px;
    min-width:120px;
    padding:8px 18px;
    border-radius:8px;
  }

  .play-btn::before{
    font-size:18px;
  }

  .play-btn::after{
    border-top-width:9px;
    border-bottom-width:9px;
    border-left-width:14px;
  }

  .free-play{
    font-size:14px;
  }

  /* GAME FOOTER */
  .game-footer{
    padding:8px;
  }

  .game-left{
    gap:6px;
  }

  .game-icon{
    width:20px;
    height:20px;
    font-size:10px;
  }

  .game-footer p{
    font-size:12px;
  }

  .favorite{
    font-size:16px;
  }
}

@media(max-width:480px){

  /* HEADER */
  .header{
    padding:8px 10px;
    gap:6px;
  }

  .logo{
    font-size:17px;
  }

  .auth{
    gap:6px;
  }

  .login-btn,
  .register-btn{
    min-height:36px;
    padding:6px 8px;
    font-size:11px;
    border-radius:8px;
  }

  /* TOP BAR */
  .top-bar{
    padding:8px 10px;
    gap:8px;
  }

  .casino-title{
    gap:8px;
  }

  .casino-title h2{
    font-size:16px;
  }

  .back-btn,
  .search-btn{
    width:36px;
    height:36px;
    font-size:16px;
  }

  /* HERO */
  .hero-slider{
    height:250px;
    padding:6px;
    margin-bottom:20px;
  }

  .slide img{
    border-radius:8px;
  }

  .dots{
    bottom:12px;
    gap:6px;
  }

  .dot{
    width:6px;
    height:6px;
  }

  /* SECTION HEADER */
  .section-header{
    padding:8px 10px;
    margin-bottom:5px;
  }

  .section-header h2{
    font-size:22px;
  }

  .section-header button{
    font-size:16px;
    min-height:36px;
  }

  /* GAMES GRID */
  .games-grid{
    grid-template-columns:repeat(2,1fr);
    gap:7px;
    padding:10px 6px 8px 5px 6px;
    overflow:hidden;
  }

  .games-grid.show-more{
    grid-template-columns:repeat(2,1fr);
    max-height:calc(200svh - 290px);
    overflow-y:auto;
    padding-right:6px;
  }

  .game-card{
    aspect-ratio:16 / 10;
    height:auto;
    border-radius:6px;
    min-height:30;
  }

  /* OVERLAY */
  .overlay{
    border-radius:6px;
  }

  /* PLAY BUTTON */
  .play-btn{
    min-height:36px;
    min-width:100px;
    padding:6px 14px;
    border-radius:6px;
  }

  .play-btn::before{
    font-size:16px;
  }

  .play-btn::after{
    border-top-width:8px;
    border-bottom-width:8px;
    border-left-width:12px;
  }

  .free-play{
    font-size:13px;
  }

  /* GAME FOOTER */
  .game-footer{
    padding:6px;
  }

  .game-left{
    gap:4px;
  }

  .game-icon{
    width:18px;
    height:18px;
    font-size:9px;
  }

  .game-footer p{
    font-size:11px;
  }

  .favorite{
    font-size:14px;
  }
}
