/* ============================================================
   SUPER138 Template - Dark + Gold
   ============================================================ */
:root {
  --bg: #0a0a0f;
  --bg-2: #12121a;
  --bg-3: #1a1a26;
  --gold: #f5c116;
  --gold-2: #ffb700;
  --orange: #ff7a00;
  --red: #d9121f;
  --red-2: #ff2d3f;
  --text: #ffffff;
  --text-dim: #b9b9c6;
  --border: rgba(245, 193, 22, 0.25);
  --radius: 12px;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* safety: tidak ada scroll horizontal liar */
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

/* ---------- Placeholder gambar (fallback sebelum file img diisi) ---------- */
.img-ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1a3e, #3d1f2e 45%, #4a2410);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.img-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.img-ph .ph-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0.5rem;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* variasi warna placeholder */
.ph-1  { background: linear-gradient(135deg, #7a1f5c, #d9121f); }
.ph-2  { background: linear-gradient(135deg, #12336b, #1f7a8c); }
.ph-3  { background: linear-gradient(135deg, #5c2a00, #b56a00); }
.ph-4  { background: linear-gradient(135deg, #8c1f37, #ff5c8a); }
.ph-5  { background: linear-gradient(135deg, #0f5c4a, #4ac96b); }
.ph-6  { background: linear-gradient(135deg, #4a0f33, #a8326b); }
.ph-7  { background: linear-gradient(135deg, #241a6b, #6b4ac9); }
.ph-8  { background: linear-gradient(135deg, #6b3a0f, #d9812a); }
.ph-9  { background: linear-gradient(135deg, #1f3d6b, #4a9fe8); }
.ph-10 { background: linear-gradient(135deg, #6b1f1f, #e85c4a); }
.ph-11 { background: linear-gradient(135deg, #3d6b1f, #a4d92a); }
.ph-12 { background: linear-gradient(135deg, #2a2a6b, #8c8cff); }
.ph-13 { background: linear-gradient(135deg, #6b5a1f, #f5d92a); }
.ph-14 { background: linear-gradient(135deg, #3d1050, #9b30d9); }
.ph-promo { min-height: 220px; background: radial-gradient(circle at 70% 30%, #6b2a9b, #1a0f3d 60%, #0a0a12); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-img { max-height: 42px; width: auto; object-fit: contain; } /* otomatis disembunyikan JS kalau filenya belum ada */
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, #fff, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-text em {
  font-style: normal;
  color: var(--red-2);
  -webkit-text-fill-color: var(--red-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-telegram { background: #229ED9; color: #fff; box-shadow: 0 4px 14px rgba(34, 158, 217, 0.4); }
.btn-login {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-register {
  background: linear-gradient(180deg, var(--gold), var(--orange));
  color: #1a1000;
  box-shadow: 0 4px 14px rgba(255, 183, 0, 0.35);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* nav kategori */
.main-nav {
  background: linear-gradient(180deg, #1c1226, #120c1a);
  border-top: 1px solid var(--border);
}
.nav-list {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
  padding-block: 0.4rem;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  color: var(--text-dim);
  transition: color 0.15s, background 0.15s;
}
.nav-list a:hover { color: #fff; background: rgba(245, 193, 22, 0.12); }
.nav-list a.hot { color: #ff5c4a; }
.nav-list a.promo { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-block: 1.25rem; background: var(--bg); }
.hero-banner {
  min-height: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.phone-frame {
  width: min(230px, 62vw);
  background: #000;
  border: 3px solid #2a2a36;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.phone-notch {
  width: 70px;
  height: 6px;
  background: #2a2a36;
  border-radius: 4px;
  margin: 0 auto 8px;
}
.phone-screen {
  background: linear-gradient(180deg, #141422, #0d0d16);
  border-radius: 18px;
  padding: 12px 10px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   TICKER PEMBERITAHUAN
   ============================================================ */
.notice-bar {
  background: linear-gradient(90deg, #2b1200, #3d1a00);
  border-block: 1px solid rgba(245, 193, 22, 0.3);
}
.notice-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.5rem;
}
.notice-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--gold);
  white-space: nowrap;
}
.notice-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.notice-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.notice-track span { padding-right: 4rem; } /* padding, bukan gap, supaya loop -50% pas */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.notice-date {
  font-size: 0.75rem;
  color: var(--gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   JACKPOT BAR
   ============================================================ */
.jackpot-bar {
  background: linear-gradient(180deg, #241400, #120800);
  border-bottom: 2px solid var(--gold);
  padding-block: 0.9rem;
}
.jackpot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.jackpot-provider, .jackpot-title { display: flex; align-items: center; gap: 0.5rem; }
.provider-logo, .jackpot-logo { height: 36px; width: auto; object-fit: contain; } /* otomatis disembunyikan JS kalau filenya belum ada */
.provider-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.provider-pragmatic {
  background: linear-gradient(90deg, #f5c116, #e8542a, #229ED9, #4ac96b, #f5c116);
  background-size: 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
}
@keyframes shine {
  to { background-position: 200%; }
}
.jackpot-play-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 2px 0 #e8542a, 0 4px 10px rgba(232, 84, 42, 0.6);
}
.jackpot-amount {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.35rem 1.1rem;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.idr-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================================================
   SECTION UMUM
   ============================================================ */
.section { padding-block: 2rem; }

.section-title {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.section-title.gold-bar {
  width: fit-content;
  padding: 0.35rem 2rem;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  color: #1a1000;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.section-title.plain { color: #fff; border-bottom: 2px solid var(--gold); padding-bottom: 0.35rem; }

/* ---------- GAME POPULER (6 game) ---------- */
/* minmax(0, 1fr): track WAJIB bisa menyusut di bawah lebar kontennya,
   cegah teks nama game memaksa kolom melebar -> overflow */
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}
.game-card { display: block; min-width: 0; }
.game-thumb {
  aspect-ratio: 3 / 4;
  min-width: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover .game-thumb {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(245, 193, 22, 0.25);
  border-color: var(--gold);
}
.game-name {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.35;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- VIDEO SLOTS POPULER ---------- */
.video-slots {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.sub-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.winners-col { display: flex; flex-direction: column; gap: 0.9rem; }
.winner-card {
  display: flex;
  gap: 0.75rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  min-width: 0;
}
.winner-thumb {
  flex: 0 0 72px;
  border-radius: 8px;
}
.winner-info { display: grid; gap: 2px; align-content: center; min-width: 0; }
.winner-user { font-size: 0.75rem; color: var(--text-dim); }
.winner-amount {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.winner-game { font-size: 0.72rem; color: var(--text-dim); }

.provider-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.provider-strip-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

/* ---------- BANNER PROMO ---------- */
.promo-band { padding-block: 1rem; }
.promo-art {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---------- ARTIKEL ---------- */
.article {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.article-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.35;
}
.article p { color: var(--text-dim); margin-bottom: 0.9rem; font-size: 0.88rem; }

/* ---------- APP DOWNLOAD ---------- */
.app-section { background: radial-gradient(circle at 20% 40%, #1c0f33, var(--bg) 65%); }
.app-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.app-visual { display: flex; align-items: flex-end; justify-content: center; gap: 1.5rem; }
.app-chips { width: 160px; min-height: 160px; border-radius: 50%; border: 1px solid var(--border); }

.phone-app { transform: rotate(-3deg); }
.app-screen { min-height: 340px; }
.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
}
.app-menu { color: var(--text-dim); letter-spacing: 0.15em; }
.app-balance {
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-weight: 600;
}
.app-hero-title {
  font-family: var(--font-head);
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 0 18px rgba(245, 193, 22, 0.7);
  padding-block: 0.4rem;
  border-block: 1px solid rgba(245, 193, 22, 0.35);
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.app-item {
  background: var(--bg-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 4px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.app-item.highlight {
  background: linear-gradient(180deg, var(--gold), var(--orange));
  color: #1a1000;
  border-color: transparent;
}

.app-download { text-align: center; }
.app-free {
  color: var(--gold);
  font-family: var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.app-name {
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.app-name span {
  background: linear-gradient(180deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app-desc { color: var(--text-dim); margin-bottom: 1.5rem; }

.app-qr {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  width: fit-content;
  margin-inline: auto;
}
.qr-box {
  width: 130px;
  height: 130px;
  background: #fff;
  border-radius: 10px;
  flex: 0 0 130px;
}
.qr-box .ph-name { color: rgba(0, 0, 0, 0.4); }
.qr-info { text-align: left; display: grid; gap: 0.35rem; }
.qr-info strong { font-family: var(--font-head); letter-spacing: 0.04em; }
.qr-info p { font-size: 0.78rem; color: var(--text-dim); }

/* ---------- INFO 3 KOLOM ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.info-col {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.info-head {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.4rem;
}
.info-sub {
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.service-item { margin-bottom: 1.1rem; }
.service-item h4, .product-item h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.service-item p { font-size: 0.75rem; color: var(--text-dim); }
.progress {
  height: 8px;
  background: #2a2a36;
  border-radius: 6px;
  margin-top: 0.4rem;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  border-radius: 6px;
}
.product-item { margin-bottom: 1.1rem; }
.product-item p { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }

.contact-links { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.15s ease;
}
.contact-link:hover { transform: translateX(4px); }
.contact-link::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.contact-link.telegram { background: #123a4d; color: #7fd4ff; }
.contact-link.telegram::before { background: #229ED9; }
.contact-link.whatsapp { background: #0f3d22; color: #7dffa9; }
.contact-link.whatsapp::before { background: #25d366; }
.contact-link.facebook { background: #16294d; color: #8fb4ff; }
.contact-link.facebook::before { background: #1877f2; }

.connect-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.social-row { display: flex; gap: 0.5rem; }
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  transition: background 0.15s, transform 0.15s;
}
.social-icon:hover { background: var(--gold); color: #1a1000; transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #070710;
  border-top: 1px solid var(--border);
  padding-block: 2rem 1rem;
  margin-top: 1.5rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--gold); }
.footer-links span { color: #3a3a48; }

.footer-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 1.25rem;
  border-block: 1px solid rgba(255, 255, 255, 0.07);
}
.badge-block { text-align: center; display: grid; gap: 0.5rem; justify-items: center; }
.badge-block h5 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.badge {
  width: 90px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}
.badge .ph-name { font-size: 0.6rem; }
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--red-2);
  color: var(--red-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}
.badge-note { font-size: 0.65rem; color: var(--text-dim); }
.badge-browsers { display: flex; gap: 0.5rem; }

.platform-block { padding-block: 1.5rem; text-align: center; }
.platform-title {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.platform-sub {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0.25rem 0 1rem;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
}
.provider-grid span {
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 0.5rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #d9d9e4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-align: center;
  transition: border-color 0.15s, color 0.15s;
}
.provider-grid span:hover { border-color: var(--gold); color: var(--gold); }

.copyright {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 1.25rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---------- Tablet besar / laptop kecil ---------- */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-chips { display: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 860px) {
  .hero-banner { min-height: 200px; }
  .video-slots { grid-template-columns: 1fr; }
  .winners-col { flex-direction: row; flex-wrap: wrap; }
  .winner-card { flex: 1 1 240px; }
  .app-inner { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .notice-date { display: none; }
}

/* ---------- HP besar ---------- */
@media (max-width: 640px) {
  body { font-size: 14px; }

  .header-actions .btn-telegram { display: none; }
  .header-top-inner { gap: 0.6rem; }
  .menu-toggle { display: flex; }
  .logo-text { font-size: 1.3rem; }
  .btn { font-size: 0.82rem; padding: 0.45rem 0.85rem; }

  .main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 480px; }
  .nav-list { flex-direction: column; padding-block: 0.5rem; }
  .nav-list a { padding: 0.6rem 1rem; }

  .hero-banner { min-height: 180px; }

  .jackpot-inner { justify-content: center; text-align: center; }
  .jackpot-play-text { font-size: clamp(1.05rem, 5vw, 1.4rem); }
  .jackpot-amount { font-size: clamp(1.05rem, 5.5vw, 1.4rem); padding: 0.3rem 0.8rem; }

  .section { padding-block: 1.4rem; }
  .section-title { font-size: 1.1rem; }
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }

  .footer-badges { grid-template-columns: 1fr; }
  .article { padding: 1.1rem; }
  .article p { font-size: 0.82rem; }
  .app-qr { flex-direction: column; text-align: center; }
  .qr-info { text-align: center; }
  .app-name { font-size: 2rem; }
}

/* ---------- HP kecil: header jadi 2 baris ----------
   Baris 1: logo + hamburger | Baris 2: MASUK & DAFTAR full-width.
   Mencegah overflow di layar 320-480px. */
@media (max-width: 480px) {
  .header-top-inner {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .logo { order: 1; margin-right: auto; }
  .menu-toggle { order: 2; }
  .header-actions {
    order: 3;
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }
  .header-actions .btn {
    flex: 1;
    text-align: center;
    padding-block: 0.55rem;
  }
  .logo-text { font-size: 1.15rem; }

  .container { width: calc(100% - 1.5rem); }

  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-banner { min-height: 150px; }
  .phone-screen { min-height: 330px; }
  .app-screen { min-height: 300px; }
  .info-col { padding: 1rem; }
  .provider-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .notice-marquee { font-size: 0.75rem; }
}

/* ---------- HP sangat kecil (320px) ---------- */
@media (max-width: 350px) {
  .logo-text { font-size: 1.05rem; }
  .btn { font-size: 0.75rem; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: 1fr; }
  .game-name { font-size: 0.65rem; }
}

