/* =====================================================================
   Daulay Store — Kartu brand: background penuh + karakter + logo
   Pasang SETELAH luxury.css. Hanya mengubah kartu di #brandGrid.
   Gambar karakter & logo per produk diatur di brand-card-pro.js.
   ===================================================================== */
#brandGrid{
  --dc-line:rgba(185,193,255,.14);
  --dc-text:#eef0ff;
  --dc-muted:#9aa3c7;
  grid-template-columns:repeat(auto-fill,minmax(176px,1fr));
  gap:20px 16px;
}

/* ---------- Kartu: background penuh ---------- */
#brandGrid .brand-card,
#brandGrid .brand-card.active{
  position:relative;
  display:flex;flex-direction:column;align-items:stretch;gap:0;
  padding:0;text-align:center;
  border:1px solid var(--dc-line)!important;
  border-radius:14px!important;
  overflow:hidden;isolation:isolate;
  background:
    /* gelap di bawah supaya logo terbaca */
    linear-gradient(180deg,rgba(11,14,33,.05) 0%,rgba(11,14,33,.15) 50%,rgba(11,14,33,.82) 100%),
    /* gelap di pinggir */
    radial-gradient(ellipse at 50% 40%,transparent 35%,rgba(11,14,33,.55) 100%),
    url('/assets/cards/bg-produk.webp?v=1') var(--dc-bgpos,50% 30%)/160% auto no-repeat,
    #0b0e21!important;
  box-shadow:0 8px 24px rgba(0,0,0,.35)!important;
  transform:translateY(0)!important;
  transition:transform .4s cubic-bezier(.2,.7,.2,1),border-color .4s,box-shadow .4s!important;
  -webkit-tap-highlight-color:transparent;
}
/* tiap kartu ambil bagian background yang berbeda */
#brandGrid .brand-card:nth-child(5n+1){--dc-bgpos:10% 8%}
#brandGrid .brand-card:nth-child(5n+2){--dc-bgpos:90% 30%}
#brandGrid .brand-card:nth-child(5n+3){--dc-bgpos:25% 52%}
#brandGrid .brand-card:nth-child(5n+4){--dc-bgpos:80% 74%}
#brandGrid .brand-card:nth-child(5n+5){--dc-bgpos:35% 94%}

#brandGrid .brand-card:hover{
  transform:translateY(-4px)!important;
  border-color:rgba(185,193,255,.34)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.45),0 0 28px rgba(124,92,255,.16)!important;
}
#brandGrid .brand-card:active{transform:translateY(-1px)!important}
#brandGrid .brand-card.active{border-color:rgba(185,193,255,.6)!important}
#brandGrid .brand-card:focus-visible{outline:1px solid #b9c1ff;outline-offset:3px}

/* kilau tipis menyapu saat hover */
#brandGrid .brand-card::after{
  content:'';position:absolute;inset:0;z-index:5;pointer-events:none;
  background:linear-gradient(120deg,transparent 40%,rgba(255,255,255,.10) 49%,rgba(255,255,255,.02) 53%,transparent 60%);
  translate:-130% 0;transition:translate 1s cubic-bezier(.2,.7,.2,1);
}
#brandGrid .brand-card:hover::after{translate:130% 0}

/* ---------- Area tengah (karakter / ikon) ---------- */
#brandGrid .brand-card .brand-icon{
  position:relative;display:block;
  width:100%;height:auto;aspect-ratio:1/1;
  margin:0;border:0!important;border-radius:0!important;
  overflow:visible;box-shadow:none!important;transform:none!important;
  background:transparent!important;
}
#brandGrid .brand-card .brand-icon::before,
#brandGrid .brand-card .brand-icon::after{display:none!important}

/* Karakter PNG transparan (kelas has-char dari JS) */
#brandGrid .brand-card.has-char .brand-icon img{
  position:absolute;z-index:2;
  left:50%;bottom:0;top:auto;translate:-50% 0;
  width:92%;height:96%;
  object-fit:contain;object-position:center bottom;
  border:0;border-radius:0;box-shadow:none;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.55));
  transition:transform .7s cubic-bezier(.2,.7,.2,1);
  transform-origin:center bottom;
}
#brandGrid .brand-card.has-char:hover .brand-icon img{transform:scale(1.05)}

/* Cadangan: ikon lama (selama gambar karakter belum ada) */
#brandGrid .brand-card:not(.has-char) .brand-icon img{
  position:absolute;z-index:2;left:50%;top:50%;
  width:54%;height:auto;aspect-ratio:1/1;
  translate:-50% -50%;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 12px 26px rgba(0,0,0,.5);
  transition:transform .7s cubic-bezier(.2,.7,.2,1);
}
#brandGrid .brand-card:not(.has-char):hover .brand-icon img{transform:scale(1.05)}

#brandGrid .brand-card .brand-icon .cat-ic{
  position:absolute;z-index:2;left:50%;top:50%;translate:-50% -50%;
  width:32%;height:auto;aspect-ratio:1;color:#b9c1ff;opacity:.9;
}

/* ---------- Bawah: logo PNG / nama ---------- */
#brandGrid .brand-card .brand-info{
  position:relative;z-index:4;flex:1;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  min-height:64px;
  padding:6px 10px 14px;
  background:transparent!important;
}
#brandGrid .brand-card .brand-info::before,
#brandGrid .brand-card .brand-info::after{display:none!important}

#brandGrid .brand-card .brand-info strong{
  max-width:100%;
  font:600 .92rem/1.25 'Plus Jakarta Sans',sans-serif;
  color:var(--dc-text);
  text-shadow:0 2px 8px rgba(0,0,0,.6);
  overflow-wrap:anywhere;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
#brandGrid .brand-card .brand-info small{
  color:var(--dc-muted);font-size:.74rem;line-height:1.3;
  text-shadow:0 2px 8px rgba(0,0,0,.6);
}

/* Logo PNG (kelas has-logo dari JS): teks disembunyikan tapi tetap terbaca Google & pembaca layar */
#brandGrid .brand-card .dc-logo{
  display:block;
  max-width:84%;max-height:48px;width:auto;height:auto;
  object-fit:contain;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.6));
}
#brandGrid .brand-card.has-logo .brand-info strong,
#brandGrid .brand-card.has-logo .brand-info small{
  position:absolute!important;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
}

#brandGrid .brand-card .card-glow,
#brandGrid .brand-card .brand-arrow{display:none!important}

/* ---------- HP: 3 kartu per baris, bentuk persegi panjang tegak ---------- */
@media (max-width:560px){
  #brandGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}
  #brandGrid .brand-card,
  #brandGrid .brand-card.active{border-radius:12px!important}
  #brandGrid .brand-card .brand-icon{aspect-ratio:3/3.9}
  #brandGrid .brand-card:not(.has-char) .brand-icon img{width:62%;border-radius:12px}
  #brandGrid .brand-card.has-char .brand-icon img{width:100%;height:100%}
  #brandGrid .brand-card .brand-info{min-height:44px;padding:2px 6px 9px;gap:1px}
  #brandGrid .brand-card .brand-info strong{font-size:.72rem;line-height:1.2}
  #brandGrid .brand-card .brand-info small{font-size:.58rem;line-height:1.25}
  #brandGrid .brand-card .dc-logo{max-width:90%;max-height:30px}
}

@media (prefers-reduced-motion:reduce){
  #brandGrid .brand-card,#brandGrid .brand-card::after,#brandGrid .brand-card .brand-icon img{transition:none!important}
}

/* =====================================================================
   Tata letak gaya TOKO (bukan landing page)
   Urutan di layar: header + menu -> banner -> pencarian & kategori -> produk
   ===================================================================== */

/* strip nama brand berjalan: hapus */
.marquee{display:none!important}

/* blok hero teks besar: disembunyikan dari layar,
   tapi judul H1 tetap ada di kode untuk Google */
.hero{
  position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;
}
.hero-actions{display:none!important}

/* header lebih ringkas */
.header-content{min-height:62px}

/* banner promo rapat ke header */
.promo{margin-top:14px!important}
.promo-dots{margin-top:6px!important}

/* katalog langsung di bawah banner */
.catalog-section{padding:18px 0 48px!important}
.catalog-section .section-head{margin-bottom:12px!important;align-items:center!important;flex-direction:row!important}
.catalog-section .section-kicker,
.catalog-section .section-head p{display:none!important}
.catalog-section .section-head h2{
  margin:0!important;font-size:1.15rem!important;font-weight:600!important;letter-spacing:-.01em!important;line-height:1.3!important;
}
.catalog-section .search-wrap{max-width:none!important;border-radius:10px!important;background:rgba(18,22,51,.7)!important}
.catalog-section .search-wrap input{padding:12px 0!important;font-size:.95rem!important}
.catalog-section .cat-tabs{margin-top:12px!important;margin-bottom:16px!important}
.catalog-section .cat-tab{border-radius:99px!important;min-height:36px!important;padding:7px 14px!important}

/* bagian bawah (cara kerja, info, FAQ) lebih rapat */
.how-section{padding:40px 0 56px!important}

/* ---------- HP ---------- */
@media (max-width:900px){
  .header-content{flex-wrap:wrap;row-gap:0;min-height:0!important;padding-top:10px}
  .header-nav{
    display:flex!important;order:3;flex:1 0 100%;
    gap:6px;margin:6px -16px 0;padding:4px 16px 10px;
    overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 24px),transparent 100%);
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16px,#000 calc(100% - 24px),transparent 100%);
  }
  .header-nav::-webkit-scrollbar{display:none}
  .header-nav a{
    flex:none;white-space:nowrap;
    font-size:.82rem;padding:7px 13px;
    border:1px solid rgba(185,193,255,.16);border-radius:99px!important;
    background:rgba(255,255,255,.03);color:#c7cbe6;
  }
  .header-nav a:active{background:rgba(185,193,255,.12);color:#fff}
}
@media (max-width:560px){
  .promo{margin-top:10px!important}
  .catalog-section{padding-top:12px!important}
  .catalog-section .section-head h2{font-size:1.02rem!important}
  .catalog-section .cat-tabs{margin-top:10px!important;margin-bottom:12px!important}
}

/* game yang disembunyikan (diatur di brand-card-pro.js -> SEMBUNYI) */
#brandGrid .brand-card.dc-hide{display:none!important}

/* Grid katalog: 5 kolom di desktop (10 game = 2 baris), 3 kolom di HP/tablet (9 game = 3 baris) */
@media (min-width:901px){
  #brandGrid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:18px 16px!important}
}
@media (max-width:900px){
  #brandGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px 8px!important}
}

/* Footer di HP: daftar link jadi dropdown */
@media (max-width:900px){
  .footer-grid{grid-template-columns:1fr!important;gap:0!important;padding-top:24px!important}
  .footer-grid > div:first-child{padding-bottom:18px;margin-bottom:6px;border-bottom:1px solid rgba(185,193,255,.12)}
  .footer-grid > .dc-acc{border-bottom:1px solid rgba(185,193,255,.12)}
  .footer-grid > .dc-acc > h3{
    display:flex;align-items:center;justify-content:space-between;
    margin:0!important;padding:15px 2px;cursor:pointer;user-select:none;
    -webkit-tap-highlight-color:transparent;
  }
  .footer-grid > .dc-acc > h3::after{
    content:'';width:8px;height:8px;margin-right:4px;
    border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
    transform:rotate(45deg) translateY(-3px);transition:transform .25s ease;
  }
  .footer-grid > .dc-acc.open > h3::after{transform:rotate(-135deg) translateY(-2px)}
  .footer-grid > .dc-acc > ul{display:none!important;padding:0 2px 16px!important}
  .footer-grid > .dc-acc.open > ul{display:grid!important}
  .footer-content{flex-direction:column;align-items:flex-start;gap:4px!important;padding:18px 0 90px!important}
}

/* ---------- Menu HP: tombol garis 3 (dropdown) ---------- */
.dc-burger{display:none}
@media (max-width:900px){
  .header-content{flex-wrap:nowrap!important;padding-top:0!important;min-height:60px!important;position:relative}
  .dc-burger{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;width:42px;height:42px;border-radius:10px;cursor:pointer;border:1px solid rgba(185,193,255,.22);background:rgba(255,255,255,.03);color:#eef0ff;-webkit-tap-highlight-color:transparent}
  .dc-burger span,.dc-burger span::before,.dc-burger span::after{display:block;width:18px;height:2px;border-radius:2px;background:currentColor;position:relative;transition:transform .25s ease,background .2s ease}
  .dc-burger span::before,.dc-burger span::after{content:'';position:absolute;left:0}
  .dc-burger span::before{top:-6px}
  .dc-burger span::after{top:6px}
  .dc-menu-open .dc-burger span{background:transparent}
  .dc-menu-open .dc-burger span::before{transform:translateY(6px) rotate(45deg)}
  .dc-menu-open .dc-burger span::after{transform:translateY(-6px) rotate(-45deg)}
  .site-header .header-nav{display:none!important;position:absolute!important;left:0;right:0;top:100%;flex-direction:column!important;gap:2px!important;margin:0!important;padding:8px 12px 12px!important;overflow:visible!important;mask-image:none!important;-webkit-mask-image:none!important;background:#0c0f22;border-bottom:1px solid rgba(185,193,255,.14);box-shadow:0 18px 40px rgba(0,0,0,.45)}
  .site-header.dc-menu-open .header-nav{display:flex!important}
  .site-header .header-nav a{display:block;border:0!important;border-radius:8px!important;background:transparent!important;padding:13px 12px!important;font-size:.95rem!important;color:#eef0ff!important}
  .site-header .header-nav a:active{background:rgba(185,193,255,.1)!important}
}

/* ---------- Kartu nominal: ikon tanpa kotak putih, pakai logo game ---------- */
.product-gem.dc-gem,.product-gem.dc-gem.has-img{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.product-gem.dc-gem img{border-radius:10px}
.product-gem.dc-gem-logo{width:auto!important;height:34px!important;max-width:128px;border-radius:0!important;overflow:visible!important;flex:0 1 auto;min-width:0;justify-content:end}
.product-gem.dc-gem-logo img{width:auto!important;height:100%!important;max-width:100%!important;object-fit:contain;border-radius:0!important;filter:drop-shadow(0 2px 6px rgba(0,0,0,.5))}
.product-top{min-width:0}
@media (max-width:560px){
  .product-gem.dc-gem-logo{height:24px!important;max-width:none}
  .product-gem.dc-gem-logo img{max-height:24px}
}
