/*!
 * Dice 3D - Shared base stylesheet
 * All custom classes use the pg06- prefix.
 * Palette: #2C2C2C / #95A5A6 / #696969 / #BDC3C7
 * Mobile-first, max width 430px container.
 */

:root {
  --pg06-bg: #2C2C2C;
  --pg06-bg-soft: #3a3a3a;
  --pg06-bg-deep: #1f1f1f;
  --pg06-text: #BDC3C7;
  --pg06-text-strong: #ffffff;
  --pg06-muted: #95A5A6;
  --pg06-accent: #d4af37;
  --pg06-accent-2: #f0c419;
  --pg06-gray: #696969;
  --pg06-border: rgba(189, 195, 199, 0.16);
  --pg06-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --pg06-radius: 12px;
  --pg06-max: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: var(--pg06-bg);
  color: var(--pg06-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pg06-accent); text-decoration: none; }
a:hover { color: var(--pg06-accent-2); text-decoration: underline; }

h1, h2, h3 { color: var(--pg06-text-strong); line-height: 1.2; margin: 0 0 .8rem; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1rem; }

/* ----- Layout containers ----- */
.pg06-wrapper {
  max-width: var(--pg06-max);
  margin: 0 auto;
  background: var(--pg06-bg-deep);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.pg06-container {
  padding: 1.4rem 1.2rem;
}

.pg06-section {
  padding: 1.8rem 1.2rem;
  border-bottom: 1px solid var(--pg06-border);
}

/* ----- Header ----- */
.pg06-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a 0%, #2C2C2C 100%);
  border-bottom: 1px solid var(--pg06-border);
  box-shadow: var(--pg06-shadow);
}
.pg06-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .9rem;
  gap: .5rem;
}
.pg06-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--pg06-text-strong);
  font-weight: 800;
  font-size: 1.55rem;
}
.pg06-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}
.pg06-brand-name span { color: var(--pg06-accent); }

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

.pg06-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 0;
  border-radius: 999px;
  padding: .55rem 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
  min-height: 38px;
  text-decoration: none;
}
.pg06-btn:hover { transform: translateY(-1px); text-decoration: none; }
.pg06-btn-register {
  background: linear-gradient(135deg, #f0c419, #d4af37);
  color: #1a1a1a;
}
.pg06-btn-login {
  background: transparent;
  color: var(--pg06-text-strong);
  border: 1px solid var(--pg06-border);
}
.pg06-btn-ghost {
  background: var(--pg06-bg-soft);
  color: var(--pg06-text-strong);
}
.pg06-menu-toggle {
  background: transparent;
  border: 1px solid var(--pg06-border);
  color: var(--pg06-text-strong);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ----- Mobile menu (slide-down) ----- */
.pg06-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1f1f1f;
  border-bottom: 1px solid var(--pg06-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.pg06-mobile-menu.pg06-menu-open { max-height: 480px; }
.pg06-mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: .5rem 1rem;
}
.pg06-mobile-menu a {
  padding: .8rem .5rem;
  border-bottom: 1px dashed var(--pg06-border);
  color: var(--pg06-text);
  font-size: 1.45rem;
}
.pg06-mobile-menu a:last-child { border-bottom: none; }

/* ----- Hero carousel ----- */
.pg06-carousel {
  position: relative;
  border-radius: var(--pg06-radius);
  overflow: hidden;
  margin: 1rem 0 1.4rem;
  box-shadow: var(--pg06-shadow);
}
.pg06-carousel-track { position: relative; }
.pg06-carousel-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.pg06-carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.pg06-carousel-slide.pg06-slide-active { display: block; }
.pg06-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .9rem 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 600;
}
.pg06-carousel-dots {
  position: absolute;
  bottom: .6rem;
  right: .9rem;
  display: flex;
  gap: .4rem;
}
.pg06-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 0; cursor: pointer;
}
.pg06-carousel-dot.pg06-dot-active { background: var(--pg06-accent); }

/* ----- Filter chips ----- */
.pg06-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: .4rem 0 1rem;
}
.pg06-filter-chip {
  border: 1px solid var(--pg06-border);
  background: var(--pg06-bg-soft);
  color: var(--pg06-text);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: 1.3rem;
  cursor: pointer;
}
.pg06-filter-chip.pg06-chip-active {
  background: var(--pg06-accent);
  color: #1a1a1a;
  border-color: var(--pg06-accent);
  font-weight: 700;
}

/* ----- Game grid ----- */
.pg06-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.pg06-game-card {
  background: var(--pg06-bg-soft);
  border: 1px solid var(--pg06-border);
  border-radius: 10px;
  padding: .5rem;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease;
}
.pg06-game-card:hover { transform: translateY(-2px); border-color: var(--pg06-accent); }
.pg06-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: .35rem;
}
.pg06-game-name {
  font-size: 1.15rem;
  color: var(--pg06-text-strong);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- Cards / blocks ----- */
.pg06-card {
  background: var(--pg06-bg-soft);
  border: 1px solid var(--pg06-border);
  border-radius: var(--pg06-radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
}
.pg06-card-accent {
  border-left: 4px solid var(--pg06-accent);
}
.pg06-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}
.pg06-mini {
  background: var(--pg06-bg);
  border-radius: 10px;
  padding: .8rem;
  text-align: center;
  font-size: 1.3rem;
  color: var(--pg06-text);
}
.pg06-mini .material-icons,
.pg06-mini i { color: var(--pg06-accent); font-size: 26px; }
.pg06-mini strong { display: block; color: var(--pg06-text-strong); font-size: 1.5rem; margin-bottom: .2rem; }

/* ----- Section title ----- */
.pg06-section-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .9rem;
  color: var(--pg06-text-strong);
}
.pg06-section-title i,
.pg06-section-title .material-icons { color: var(--pg06-accent); }

/* ----- Inline promo links (SEO-friendly) ----- */
.pg06-promo-text {
  color: var(--pg06-accent);
  font-weight: 700;
  cursor: pointer;
}
.pg06-promo-text:hover { color: var(--pg06-accent-2); }

/* ----- Big CTA ----- */
.pg06-cta {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-align: center;
  padding: 1.6rem 1rem;
  background: linear-gradient(135deg, #2C2C2C, #3a3a3a);
  border-radius: var(--pg06-radius);
  border: 1px solid var(--pg06-accent);
  margin: 1rem 0;
}
.pg06-cta .pg06-btn { align-self: center; padding: .8rem 2rem; }

/* ----- Testimonial ----- */
.pg06-testimonial {
  background: var(--pg06-bg-soft);
  border-radius: 10px;
  padding: .9rem;
  margin-bottom: .7rem;
  border-left: 3px solid var(--pg06-accent);
}
.pg06-testimonial .pg06-quote { font-style: italic; color: var(--pg06-text); }
.pg06-testimonial .pg06-author { color: var(--pg06-muted); font-size: 1.2rem; margin-top: .3rem; }

/* ----- RTP table ----- */
.pg06-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.pg06-table th, .pg06-table td {
  padding: .55rem .5rem;
  border-bottom: 1px solid var(--pg06-border);
  text-align: left;
}
.pg06-table th { color: var(--pg06-text-strong); }
.pg06-rtp-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--pg06-bg);
  overflow: hidden;
  margin-top: .25rem;
}
.pg06-rtp-bar span { display: block; height: 100%; background: linear-gradient(90deg, #d4af37, #f0c419); }

/* ----- Winner showcase ----- */
.pg06-winner {
  display: flex;
  justify-content: space-between;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--pg06-border);
  font-size: 1.3rem;
}
.pg06-winner:last-child { border-bottom: none; }
.pg06-winner strong { color: var(--pg06-accent); }

/* ----- Footer ----- */
.pg06-footer {
  background: #1a1a1a;
  color: var(--pg06-muted);
  padding: 1.6rem 1.2rem 2.4rem;
  border-top: 1px solid var(--pg06-border);
  font-size: 1.3rem;
}
.pg06-footer h3 { color: var(--pg06-text-strong); font-size: 1.5rem; margin-bottom: .6rem; }
.pg06-footer-links {
  display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin: .6rem 0 1rem;
}
.pg06-footer-links a {
  color: var(--pg06-text);
  background: var(--pg06-bg-soft);
  border: 1px solid var(--pg06-border);
  border-radius: 8px;
  padding: .35rem .65rem;
  font-size: 1.2rem;
}
.pg06-footer-promos {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0;
}
.pg06-footer-promos .pg06-btn { padding: .5rem .9rem; font-size: 1.25rem; }
.pg06-copyright { margin-top: 1rem; color: var(--pg06-gray); font-size: 1.15rem; }

/* ----- Bottom navigation ----- */
.pg06-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 62px;
  background: linear-gradient(180deg, #2C2C2C, #161616);
  border-top: 1px solid var(--pg06-accent);
  box-shadow: 0 -4px 18px rgba(0,0,0,.45);
}
.pg06-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  color: var(--pg06-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color .2s ease, transform .15s ease;
}
.pg06-bottom-nav-btn:hover { color: var(--pg06-accent); transform: translateY(-1px); text-decoration: none; }
.pg06-bottom-nav-btn .material-icons,
.pg06-bottom-nav-btn i { font-size: 24px; }
.pg06-bottom-nav-btn span { font-size: 1.05rem; }
.pg06-bottom-nav-btn.pg06-nav-current { color: var(--pg06-accent); }
.pg06-bottom-nav-btn.pg06-nav-current .material-icons,
.pg06-bottom-nav-btn.pg06-nav-current i { color: var(--pg06-accent-2); }

/* ----- Utility ----- */
.pg06-text-accent { color: var(--pg06-accent); }
.pg06-text-strong { color: var(--pg06-text-strong); }
.pg06-mt-1 { margin-top: .5rem; }
.pg06-mt-2 { margin-top: 1rem; }
.pg06-hide-mobile { display: none; }

/* ----- Desktop / wider screens ----- */
@media (min-width: 768px) {
  .pg06-bottom-nav { display: none; }
  .pg06-hide-mobile { display: inline-flex; }
  .pg06-wrapper { box-shadow: 0 0 40px rgba(0,0,0,.5); }
}

/* Mobile bottom clearance for fixed nav */
@media (max-width: 768px) {
  main, .pg06-main { padding-bottom: 80px; }
}
