* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #1C0E07;
  color: #ffffff;
}

/* =======================
   TOP BAR
======================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: linear-gradient(180deg, #1a1a1a, #0e0e0e);
}

.logo img {
  height: 32px;
}

.menu-icon {
  font-size: 22px;
  color: #f1c40f;
  cursor: pointer;
}

/* =======================
   BANNER
======================= */
.banner img {
  width: 100%;
  display: block;
  border-radius: 0 0 16px 16px;
}

/* =======================
   PROVIDER BAR
======================= */
.provider-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px;
}

.provider {
  background: #111;
  border: 2px solid #222;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.provider img {
  width: 60px;
}

.provider.active {
  border-color: #f1c40f;
}

/* =======================
   SEARCH
======================= */
.search-box {
  display: flex;
  justify-content: center;
  padding: 6px 12px;
}

.search-box input {
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 2px solid #f1c40f;
  background: #111;
  color: #fff;
}

/* =======================
   TITLE BAR
======================= */
.title-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  margin: 10px 0;
}

.provider-title {
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: #f1c40f;
}

/* =======================
   AUTH BUTTON
======================= */
.auth-btn {
  font-size: 12px;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  min-width: 70px;
}

/* DAFTAR */
.auth-btn.daftar {
  background: transparent;
  border: 2px solid #f1c40f;
  color: #f1c40f;
}

/* LOGIN */
.auth-btn.login {
  background: #f57c1f;
  color: #fff;
}

/* =======================
   GRID GAME
======================= */
.container {
  padding: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

/* =======================
   CARD
======================= */
.card {
  background: #1b1b1b;
  border-radius: 16px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

/* NAMA GAME */
.game-name {
  margin-top: 6px;
  font-size: 13px;
  font-weight: bold;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* =======================
   RTP BAR
======================= */
.rtp-box {
  margin-top: auto;
  position: relative;
  height: 22px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.rtp-fill {
  height: 100%;
}

.green { background: #2ecc71; }
.yellow { background: #f1c40f; }
.red { background: #e74c3c; }

.rtp-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: bold;
  color: #000;
}

/* =======================
   FOOTER
======================= */
.update-time {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin: 10px 0;
}
