/* =================================================
   GLOBAL
================================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0f1a;
  color: #ffffff;
}

/* =================================================
   HEADER
================================================= */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #020617;
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  height: 40px;
}

.header-right {
  display: flex;
  gap: 8px;
}

.btn-header {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.btn-header.login {
  background: #1f2937;
}

.btn-header.daftar {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* =================================================
   RUNNING TEXT
================================================= */
.running-text {
  background: linear-gradient(90deg, #facc15, #22c55e, #3b82f6);
  overflow: hidden;
}

.marquee {
  white-space: nowrap;
  padding: 8px 0;
  font-weight: bold;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* =================================================
   SLIDER / BANNER
================================================= */
.banner-slider {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.banner-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 220px;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}

.banner-slider img.active {
  opacity: 1;
}

/* =================================================
   FILTER
================================================= */
.filter {
  text-align: center;
  margin: 15px;
}

.filter button {
  background: #1f2937;
  color: #fff;
  border: none;
  padding: 10px 14px;
  margin: 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .25s;
}

.filter button:hover {
  background: #374151;
}

/* =================================================
   GAME GRID
================================================= */
.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
}

.game-card {
  background: #111827;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s;
}

.game-card:hover {
  transform: translateY(-3px);
}

/* =================================================
   GAME IMAGE
================================================= */
.game-image {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PLAY OVERLAY */
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}

.game-image:hover .play-overlay {
  opacity: 1;
}

.play-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  padding: 8px 16px;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
}

/* HOT BADGE */
.hot-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ef4444;
  border-radius: 50%;
  padding: 6px;
  font-size: 14px;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  50% { transform: scale(1.2); }
}

/* =================================================
   GAME INFO
================================================= */
.game-info {
  padding: 10px;
  text-align: center;
}

.game-info h3 {
  font-size: 14px;
  margin: 6px 0;
}

/* RTP BAR */
.rtp-bar {
  height: 8px;
  background: #1f2937;
  border-radius: 6px;
  overflow: hidden;
  margin: 6px 0;
}

.rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #facc15, #ef4444);
}

/* =================================================
   LOAD MORE
================================================= */
.load-more-wrap {
  text-align: center;
  margin-bottom: 20px;
}

#loadMoreBtn {
  padding: 10px 22px;
  background: #3b82f6;
  border: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}

/* =================================================
   FOOTER
================================================= */
.main-footer {
  text-align: center;
  padding: 15px;
  background: #020617;
  color: #9ca3af;
  font-size: 13px;
}

/* =================================================
   MODAL (LOGIN / DAFTAR)
================================================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  width: 300px;
  background: #111827;
  padding: 20px;
  border-radius: 10px;
  animation: modalPop .3s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-box input {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: #1f2937;
  border: none;
  border-radius: 6px;
  color: #fff;
}

.modal-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
  color: #9ca3af;
}

/* =================================================
   HOT POPUP
================================================= */
.hot-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.hot-popup-box {
  width: 320px;
  background: #020617;
  padding: 15px;
  border-radius: 12px;
}

.hot-popup-box h3 {
  text-align: center;
  color: #facc15;
  margin-bottom: 12px;
}

.hot-item {
  display: flex;
  align-items: center;
  background: #020617;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.hot-item img {
  width: 50px;
  height: 35px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}

/* =================================================
   FLOATING CHAT
================================================= */
.floating-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #22c55e;
  color: #fff;
  padding: 14px;
  border-radius: 50%;
  font-size: 22px;
  text-decoration: none;
  z-index: 999;
}
