/* nustar-casino.css - Nustar Casino base styles
   All custom classes use pg48- prefix. Mobile-first. */

:root {
  --pg48-bg: #2C2C2C;
  --pg48-bg-2: #1c1c1c;
  --pg48-bg-3: #383838;
  --pg48-text: #FFFFBA;
  --pg48-accent: #EEE8AA;
  --pg48-gold: #FFD24A;
  --pg48-red: #C0392B;
  --pg48-green: #2ECC71;
  --pg48-line: rgba(255,255,186,0.14);
  --pg48-shadow: 0 8px 22px rgba(0,0,0,0.45);
  --pg48-radius: 14px;
  --pg48-header-h: 56px;
  --pg48-bottom-h: 62px;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pg48-bg);
  color: var(--pg48-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--pg48-accent); text-decoration: none; }
a:hover, a:focus { color: var(--pg48-gold); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: #fff; line-height: 1.3; margin: 0 0 0.6em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

/* Layout */
.pg48-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.pg48-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* Header */
.pg48-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--pg48-header-h);
  background: linear-gradient(180deg, #1c1c1c 0%, #2C2C2C 100%);
  border-bottom: 1px solid var(--pg48-line);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.pg48-header-inner {
  max-width: 430px; margin: 0 auto;
  height: 100%; padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pg48-logo { display: flex; align-items: center; gap: 8px; color: #fff; }
.pg48-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg48-logo strong { font-size: 1.6rem; color: var(--pg48-accent); letter-spacing: .3px; }

.pg48-header-actions { display: flex; align-items: center; gap: 6px; }
.pg48-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 34px; padding: 0 12px; border: none; border-radius: 18px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  min-width: 44px; min-height: 44px;
}
.pg48-btn:active { transform: scale(.96); }
.pg48-btn-login { background: #3a3a3a; color: var(--pg48-accent); border: 1px solid var(--pg48-line); }
.pg48-btn-register { background: linear-gradient(135deg, var(--pg48-gold), #ff9d00); color: #1a1a1a; box-shadow: 0 4px 10px rgba(255,210,74,.3); }

.pg48-menu-btn {
  background: transparent; border: 1px solid var(--pg48-line); border-radius: 8px;
  width: 38px; height: 38px; color: var(--pg48-accent); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.pg48-menu-btn.pg48-active { background: rgba(255,255,186,.08); }

/* Mobile menu drawer */
.pg48-mobile-menu {
  position: fixed; top: var(--pg48-header-h); left: 0; right: 0; z-index: 9999;
  background: #161616; border-bottom: 1px solid var(--pg48-line);
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
}
.pg48-mobile-menu.pg48-open { max-height: 80vh; overflow-y: auto; box-shadow: var(--pg48-shadow); }
.pg48-mobile-menu-inner { padding: 8px 14px 18px; }
.pg48-mobile-menu a {
  display: block; padding: 12px 8px; border-bottom: 1px solid var(--pg48-line);
  color: var(--pg48-text); font-size: 1.45rem;
}
.pg48-mobile-menu a:hover { background: rgba(255,255,186,.06); }

/* Main content with bottom padding for nav */
main { padding-top: calc(var(--pg48-header-h) + 6px); padding-bottom: calc(var(--pg48-bottom-h) + 16px); }

/* Hero slider */
.pg48-hero { margin: 10px 0 4px; }
.pg48-slider { position: relative; border-radius: var(--pg48-radius); overflow: hidden; box-shadow: var(--pg48-shadow); }
.pg48-slide {
  display: none; position: relative; cursor: pointer;
}
.pg48-slide.pg48-active { display: block; }
.pg48-slide img { width: 100%; height: 180px; object-fit: cover; }
.pg48-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.78) 30%, transparent);
  color: #fff; font-size: 1.5rem; font-weight: 700;
}
.pg48-slide-cap span { color: var(--pg48-accent); }
.pg48-slider-ctrl {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.45);
  color: #fff; border: none; cursor: pointer; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.pg48-prev { left: 8px; } .pg48-next { right: 8px; }
.pg48-dots { display: flex; gap: 6px; justify-content: center; padding: 8px 0; }
.pg48-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,186,.3); cursor: pointer; border: none; padding: 0; }
.pg48-dot.pg48-active { background: var(--pg48-gold); width: 18px; border-radius: 4px; }

/* Section */
.pg48-section { margin: 18px 0; }
.pg48-section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.pg48-section-head h2 { margin: 0; font-size: 1.7rem; color: #fff; }
.pg48-section-head h2 .pg48-ico { color: var(--pg48-gold); margin-right: 6px; }
.pg48-section-head .pg48-more { font-size: 1.25rem; color: var(--pg48-accent); }
.pg48-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: rgba(255,210,74,.16); color: var(--pg48-gold); font-size: 1.15rem; margin-left: 6px; }

/* Category quick chips */
.pg48-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; }
.pg48-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 18px;
  background: #3a3a3a; color: var(--pg48-text); font-size: 1.3rem; cursor: pointer;
  border: 1px solid var(--pg48-line); white-space: nowrap;
}
.pg48-chip:active { background: var(--pg48-gold); color: #1a1a1a; }

/* Game grid */
.pg48-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pg48-card {
  background: var(--pg48-bg-3); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--pg48-line); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.pg48-card:active { transform: scale(.97); box-shadow: var(--pg48-shadow); }
.pg48-card-img { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #111; }
.pg48-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pg48-card-name { padding: 6px 6px 8px; font-size: 1.15rem; color: var(--pg48-text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg48-card-hot { position: absolute; top: 4px; left: 4px; background: var(--pg48-red); color: #fff; font-size: 1rem; padding: 1px 6px; border-radius: 4px; }

/* Info blocks */
.pg48-info { background: var(--pg48-bg-3); border-radius: var(--pg48-radius); padding: 16px; border: 1px solid var(--pg48-line); margin: 14px 0; }
.pg48-info h2, .pg48-info h3 { color: var(--pg48-gold); }
.pg48-info p { color: var(--pg48-text); font-size: 1.4rem; }
.pg48-info a { color: var(--pg48-accent); border-bottom: 1px dashed var(--pg48-accent); }

/* Feature list */
.pg48-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pg48-feature { background: #353535; border-radius: 12px; padding: 14px; border: 1px solid var(--pg48-line); text-align: center; }
.pg48-feature .pg48-ic { font-size: 2.4rem; color: var(--pg48-gold); margin-bottom: 6px; }
.pg48-feature strong { display: block; color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.pg48-feature span { color: var(--pg48-text); font-size: 1.15rem; }

/* Testimonials */
.pg48-testi { background: #333; border-radius: 12px; padding: 14px; border-left: 4px solid var(--pg48-gold); margin-bottom: 10px; }
.pg48-testi .pg48-stars { color: var(--pg48-gold); font-size: 1.2rem; margin-bottom: 4px; }
.pg48-testi p { margin: 0 0 6px; font-size: 1.35rem; color: var(--pg48-text); }
.pg48-testi small { color: var(--pg48-accent); }

/* Winners ticker */
.pg48-winners { background: linear-gradient(90deg,#3a2c00,#1c1c1c); border-radius: 12px; padding: 10px 12px; border: 1px solid var(--pg48-line); }
.pg48-winner-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--pg48-line); font-size: 1.3rem; }
.pg48-winner-row:last-child { border-bottom: none; }
.pg48-winner-row b { color: var(--pg48-gold); }

/* Payment icons row */
.pg48-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pg48-pay span { background: #3a3a3a; color: var(--pg48-accent); padding: 6px 10px; border-radius: 8px; font-size: 1.2rem; border: 1px solid var(--pg48-line); }

/* CTA banner */
.pg48-cta { background: linear-gradient(135deg, #FFD24A, #ff9d00); color: #1a1a1a; border-radius: var(--pg48-radius); padding: 16px; text-align: center; margin: 14px 0; box-shadow: var(--pg48-shadow); }
.pg48-cta h3 { color: #1a1a1a; margin-bottom: 4px; }
.pg48-cta p { color: #2c2c2c; margin-bottom: 10px; }
.pg48-cta-btn { display: inline-block; background: #1a1a1a; color: var(--pg48-gold); padding: 10px 22px; border-radius: 22px; font-weight: 700; font-size: 1.35rem; }

/* FAQ */
.pg48-faq-item { background: #333; border-radius: 10px; margin-bottom: 8px; border: 1px solid var(--pg48-line); overflow: hidden; }
.pg48-faq-q { width: 100%; text-align: left; background: transparent; color: #fff; border: none; padding: 12px 14px; font-size: 1.4rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.pg48-faq-q .pg48-sign { color: var(--pg48-gold); font-size: 1.6rem; }
.pg48-faq-a { max-height: 0; overflow: hidden; padding: 0 14px; color: var(--pg48-text); transition: max-height .25s ease, padding .25s ease; }
.pg48-faq-item.pg48-open .pg48-faq-a { max-height: 360px; padding: 0 14px 12px; }

/* Footer */
.pg48-footer { background: #161616; padding: 22px 14px calc(var(--pg48-bottom-h) + 30px); border-top: 1px solid var(--pg48-line); }
.pg48-footer-inner { max-width: 430px; margin: 0 auto; }
.pg48-footer h4 { color: var(--pg48-gold); font-size: 1.35rem; margin-bottom: 6px; }
.pg48-footer p { color: var(--pg48-text); font-size: 1.25rem; }
.pg48-footer-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.pg48-footer-links a { color: var(--pg48-accent); font-size: 1.2rem; }
.pg48-footer-promo { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pg48-footer-promo button { background: linear-gradient(135deg, var(--pg48-gold), #ff9d00); color: #1a1a1a; border: none; padding: 8px 14px; border-radius: 18px; font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.pg48-footer-copy { color: #888; font-size: 1.1rem; margin-top: 12px; border-top: 1px solid var(--pg48-line); padding-top: 10px; }

/* Bottom navigation */
.pg48-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--pg48-bottom-h);
  background: rgba(22,22,22,.97);
  border-top: 1px solid var(--pg48-line);
  display: flex; justify-content: space-around; align-items: stretch;
  backdrop-filter: blur(6px);
}
.pg48-bottom-nav a, .pg48-bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; background: transparent; border: none; color: var(--pg48-text);
  font-size: 1.05rem; text-decoration: none; min-width: 60px; min-height: 60px;
  padding: 4px 0; transition: color .15s ease, transform .15s ease;
}
.pg48-bottom-nav .pg48-ic { font-size: 2.2rem; line-height: 1; }
.pg48-bottom-nav a:active, .pg48-bottom-nav button:active { transform: scale(.9); color: var(--pg48-gold); }
.pg48-bottom-nav a:hover, .pg48-bottom-nav button:hover { color: var(--pg48-gold); }
.pg48-bottom-nav .pg48-center {
  position: relative; top: -14px;
  background: linear-gradient(135deg, var(--pg48-gold), #ff9d00);
  color: #1a1a1a; width: 50px; height: 50px; border-radius: 50%;
  align-self: center; flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(255,210,74,.45);
}
.pg48-bottom-nav .pg48-center .pg48-ic { font-size: 2.6rem; }

/* Back to top floating button */
.pg48-to-top {
  position: fixed; right: 12px; bottom: calc(var(--pg48-bottom-h) + 12px); z-index: 999;
  width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.6); color: var(--pg48-gold);
  border: 1px solid var(--pg48-line); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease; cursor: pointer; font-size: 1.8rem;
}
.pg48-to-top.pg48-show { opacity: 1; pointer-events: auto; }

/* Desktop: hide bottom nav + center content */
@media (min-width: 769px) {
  .pg48-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
  .pg48-footer { padding-bottom: 30px; }
  .pg48-container, .pg48-wrapper, .pg48-header-inner, .pg48-footer-inner { max-width: 760px; }
}

/* Small screens: tighten hero */
@media (max-width: 360px) {
  .pg48-grid { grid-template-columns: repeat(2, 1fr); }
  .pg48-features { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
}
