/* Modern V2 Theme: Dark Blue + Green Premium
   Author: site_v2 generator
*/
:root{
  --bg0:#050812;
  --bg1:#070f1f;
  --card:#0b1226;
  --card2:#0c162d;
  --line:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.68);
  --muted2:rgba(255,255,255,.52);
  --accent:#23d18b;
  --accent2:#3aa0ff;
  --danger:#ff4d4d;
  --warn:#ffcc66;
  --good:#23d18b;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(58,160,255,.20), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(35,209,139,.16), transparent 55%),
    radial-gradient(700px 400px at 30% 95%, rgba(35,209,139,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

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

.page{min-height:100%; display:flex; flex-direction:column}
.main{width:min(1220px, calc(100% - 28px)); margin:0 auto; padding: 18px 0 90px}

/* Topbar */
.topbar{
  width:min(1220px, calc(100% - 28px));
  margin: 14px auto 10px;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--line);
  background: rgba(7,15,31,.55);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none}
.brand img{width: min(240px, 46vw); height:auto}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  text-decoration:none;
  color: var(--text);
  font-weight: 650;
  letter-spacing:.2px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform: translateY(0)}
.btn-ghost{background: rgba(255,255,255,.03)}
.btn-primary{
  border-color: rgba(35,209,139,.35);
  background: linear-gradient(135deg, rgba(58,160,255,.18), rgba(35,209,139,.22));
}

/* Hero */
.hero{
  margin-top: 10px;
  display:grid;
  gap: 12px;
}
.hero-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 10px;
  padding: 14px 14px 12px;
  border:1px solid var(--line);
  background: rgba(11,18,38,.52);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero-title{
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing:.4px;
}
.accent{color: var(--accent)}
.hero-sub{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(58,160,255,.28);
  background: rgba(58,160,255,.10);
  color: rgba(255,255,255,.86);
  font-weight:700;
}
.date-now{white-space:nowrap}

/* Carousel */
.carousel{
  position:relative;
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(11,18,38,.42);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.carousel-track{
  display:flex;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
}
.carousel-track::-webkit-scrollbar{display:none}
.carousel-slide{
  min-width:100%;
  scroll-snap-align: start;
  display:block;
  text-decoration:none;
}
.carousel-slide img{
  width:100%;
  aspect-ratio: 1200 / 430;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.carousel-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.9);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 26px;
  line-height: 1;
  backdrop-filter: blur(6px);
}
.carousel-btn.prev{left:10px}
.carousel-btn.next{right:10px}
.carousel-btn:hover{background: rgba(0,0,0,.48)}
.carousel-dots{
  position:absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  display:flex;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}
.carousel-dot{
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}
.carousel-dot.is-active{background: rgba(255,255,255,.9)}

/* Layout: Providers + Games */
.layout{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
}
.providers{
  border:1px solid var(--line);
  border-radius: 18px;
  background: rgba(11,18,38,.50);
  box-shadow: var(--shadow);
  overflow:hidden;
  height: fit-content;
}
.providers-head{
  padding: 12px 14px;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}

.slot-sidebar-nav{
  list-style:none;
  margin:0;
  padding: 10px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.slot-sidebar-nav li{margin:0; padding:0}
.btn-provider{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  text-decoration:none;
  color: rgba(255,255,255,.86);
  font-weight: 750;
  letter-spacing:.2px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn-provider:hover{transform: translateY(-1px); background: rgba(255,255,255,.06)}
.btn-provider.active{
  border-color: rgba(35,209,139,.35);
  background: linear-gradient(135deg, rgba(58,160,255,.14), rgba(35,209,139,.16));
}
.btn-provider i{display:none}
.btn-provider .enter{display:none}
.btn-provider .api_name{font-size: 13px}

/* Games section */
.games{
  border:1px solid var(--line);
  border-radius: 18px;
  background: rgba(11,18,38,.50);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.games-head{
  padding: 12px 14px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
  border-bottom:1px solid var(--line);
  background: rgba(0,0,0,.16);
}
.games-title{font-weight: 900; letter-spacing:.3px}
.games-meta{color: var(--muted); font-size: 13px}

.wrapper.game-grid{
  padding: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.card{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.08));
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.card-content{position:relative}

/* Play overlay */
.hover-btn{
  position:absolute;
  inset:0;
  opacity:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  z-index:4;
  background: rgba(0,0,0,.45);
  transition: opacity .12s ease;
}
.card:hover .hover-btn{opacity:1}
.play-btn{
  padding: 10px 14px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(7,15,31,.65);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  letter-spacing:.6px;
}

.img-zoom{
  width:100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .25s ease;
}
.card:hover .img-zoom{transform: scale(1.06)}

/* Percent bar */
.percent{
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(7,15,31,.68);
  backdrop-filter: blur(8px);
  z-index: 3;
}
.percent-txt{
  margin:0 0 6px 0;
  font-weight: 900;
  font-size: 13px;
  letter-spacing:.3px;
}
.percent-bar{
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  position:relative;
  overflow:hidden;
}
.percent-bar.red{background: linear-gradient(90deg, rgba(255,77,77,.95), rgba(255,77,77,.65))}
.percent-bar.yellow{background: linear-gradient(90deg, rgba(255,204,102,.95), rgba(255,204,102,.65))}
.percent-bar.green{background: linear-gradient(90deg, rgba(35,209,139,.95), rgba(35,209,139,.65))}

/* Jam & Pola blocks */
.d-grid{display:grid}
.gap-2{gap:.5rem}

.jam{padding: 0 10px 10px}
.jamBg{
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 10px 10px;
}
.jamBg h5{
  margin:0;
  font-size: 12px;
  letter-spacing:.6px;
  color: rgba(255,255,255,.86);
}
.jamBg .jamgacorRange{
  margin-top: 6px;
  font-weight: 950;
  letter-spacing:.4px;
  font-size: 14px;
}
.pola p{
  margin: 6px 0 0 0;
  color: rgba(255,255,255,.80);
  font-weight: 750;
  font-size: 12px;
}

/* SEO */
.seo{
  margin-top: 14px;
  border:1px solid var(--line);
  border-radius: 18px;
  background: rgba(11,18,38,.50);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.seo-details summary{
  padding: 14px;
  cursor:pointer;
  font-weight: 900;
  list-style:none;
  border-bottom:1px solid var(--line);
  background: rgba(0,0,0,.16);
}
.seo-details summary::-webkit-details-marker{display:none}
.seo-body{padding: 12px 14px}
.seo-body article{color: rgba(255,255,255,.86)}
.seo-body h1,.seo-body h2,.seo-body h3{color: rgba(255,255,255,.92)}

/* Footer */
.footer{
  margin-top:auto;
  padding: 18px 0 26px;
}
.footer-inner{
  width:min(1220px, calc(100% - 28px));
  margin:0 auto;
  color: var(--muted2);
  text-align:center;
  font-size: 13px;
}

/* Sticky CTA */
.sticky-cta{
  position:fixed;
  left:50%;
  transform: translateX(-50%);
  bottom: 12px;
  width: min(520px, calc(100% - 24px));
  display:flex;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(7,15,31,.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
  z-index: 50;
}
.cta{
  flex:1;
  text-align:center;
  padding: 12px 12px;
  border-radius: 16px;
  text-decoration:none;
  font-weight: 950;
  letter-spacing:.4px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
}
.cta-primary{
  border-color: rgba(35,209,139,.35);
  background: linear-gradient(135deg, rgba(58,160,255,.18), rgba(35,209,139,.28));
}
.cta-secondary{
  background: rgba(255,255,255,.05);
}

/* Responsive */
.desktop-only{display:none}
.mobile-only{display:flex}

@media (min-width: 900px){
  .desktop-only{display:flex}
  .mobile-only{display:none}
}

@media (max-width: 1100px){
  .wrapper.game-grid{grid-template-columns: repeat(3, minmax(0,1fr))}
}
@media (max-width: 860px){
  .layout{grid-template-columns: 1fr}
  .providers{order: 0}
  .slot-sidebar-nav{
    flex-direction:row;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling: touch;
  }
  .slot-sidebar-nav::-webkit-scrollbar{display:none}
  .btn-provider{white-space:nowrap}
  .wrapper.game-grid{grid-template-columns: repeat(2, minmax(0,1fr))}
}
@media (max-width: 480px){
  .wrapper.game-grid{grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px}
  .topbar{padding: 10px 12px}
  .hero-head{padding: 12px}
}
@media (prefers-reduced-motion: reduce){
  *{transition:none !important; scroll-behavior:auto !important}
}



/* === Card V3 (Image full + actions + modal trigger) === */
.card-content{display:flex; flex-direction:column}
.card-media{position:relative; padding: 0 !important}
.card .img-zoom{
  width:100%;
  height:100%;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  background: transparent !important;
  border-radius: 0 !important;
  transform: scale(1.18);
}
.card:hover .img-zoom{transform: scale(1.22)}

/* percent sits on image */
.percent{left: 12px; right: 12px; bottom: 12px}
.percent-txt{font-size: 12px}
.percent-track{
  width:100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow:hidden;
}
.percent-bar{
  height: 100%;
  border-radius: 999px;
  transition: width .9s ease;
}

/* info area */
.card-info{padding: 12px 12px 14px}
.card-title{
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255,255,255,.92);
  margin: 2px 0 10px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.card-meta{display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 10px}
.meta-pill{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(7,15,31,.55);
  color: rgba(255,255,255,.86);
  font-size: 12px;
}

/* actions */
.card-actions{display:flex; gap: 8px; flex-wrap:wrap}
.btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
}
.btn:active{transform: translateY(1px)}
.btn-small{padding: 9px 10px; font-size: 12px}
.btn-primary{
  background: linear-gradient(180deg, rgba(44,222,148,.22), rgba(19,170,110,.12));
  border-color: rgba(44,222,148,.35);
}
.btn-outline{
  background: rgba(0,0,0,.10);
  border-color: rgba(44,222,148,.25);
}
.btn-ghost{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.10);
}
.btn:hover{background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18)}
.btn-primary:hover{background: linear-gradient(180deg, rgba(44,222,148,.28), rgba(19,170,110,.16))}

/* make cards denser on small screens */
@media (max-width: 480px){
  .card-media{padding: 0 !important}
  .card-info{padding: 10px 10px 12px}
  .card-actions{gap: 6px}
  .btn-small{padding: 8px 9px}
}

/* === Modal V3 (Tips Pola) === */
.modal-backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 14px;
  z-index: 9999;
}
.modal-backdrop.is-open{display:flex}
.modal{
  width: min(980px, 100%);
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(8,18,40,.96), rgba(5,10,22,.96));
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  overflow:hidden;
  position:relative;
}
.modal-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.92);
  font-size: 22px;
  line-height: 0;
  cursor:pointer;
}
.modal-head{
  padding: 16px 16px 14px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(90deg, rgba(19,170,110,.22), rgba(8,18,40,.0));
}
.modal-kicker{font-weight: 1000; letter-spacing:.8px; color: rgba(255,255,255,.92)}
.modal-sub{margin-top: 4px; color: rgba(255,255,255,.75); font-weight: 700; font-size: 12px}
.modal-badges{display:flex; gap: 8px; flex-wrap:wrap; justify-content:flex-end}
.badge{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(7,15,31,.55);
  font-weight: 900;
  font-size: 12px;
}
.badge-strong{
  border-color: rgba(44,222,148,.38);
  background: rgba(44,222,148,.12);
}
.modal-body{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  padding: 14px 16px 16px;
}
.modal-steps{display:grid; gap: 10px}
.step{
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(7,15,31,.55);
  overflow:hidden;
}
.step-h{
  padding: 10px 12px;
  font-weight: 1000;
  letter-spacing:.4px;
  background: linear-gradient(180deg, rgba(44,222,148,.18), rgba(0,0,0,.0));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.step-b{padding: 10px 12px; color: rgba(255,255,255,.86); font-weight: 700; font-size: 13px; line-height: 1.35}
.step-b em{font-style: normal; color: rgba(44,222,148,.92); font-weight: 1000}
.modal-side{display:grid; gap: 12px}
.modal-game{
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(7,15,31,.55);
  overflow:hidden;
}
.modal-game img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display:block;
}
.modal-game-meta{padding: 12px}
.modal-game-title{font-weight: 1000; font-size: 15px; margin-bottom: 8px}
.modal-game-sub .row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
  font-weight: 750;
  font-size: 13px;
}
.modal-game-sub .row strong{color: rgba(255,255,255,.92); font-weight: 1000}
.modal-note{
  border-radius: 14px;
  border:1px dashed rgba(255,255,255,.16);
  padding: 12px;
  color: rgba(255,255,255,.75);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
}
.modal-cta{
  display:block;
  text-align:center;
  padding: 14px 16px;
  font-weight: 1000;
  letter-spacing:.6px;
  color: rgba(255,255,255,.92);
  background: linear-gradient(180deg, rgba(44,222,148,.28), rgba(19,170,110,.16));
  border-top: 1px solid rgba(255,255,255,.08);
  text-decoration:none;
}
.modal-cta:hover{filter: brightness(1.05)}

@media (max-width: 820px){
  .modal-body{grid-template-columns: 1fr}
  .modal-badges{justify-content:flex-start}
}
