/* ===========================================================
 * panaloko.homes - design.css
 * All custom classes use the "pg85-" prefix.
 * Color palette: #1A1A2E | #1E90FF | #FFEF94 | #A9A9A9 | #87CEEB | #AFEEEE
 * Mobile-first. Root font-size: 62.5% (1rem = 10px).
 * =========================================================== */

:root {
  --pg85-bg: #1A1A2E;
  --pg85-bg-alt: #232347;
  --pg85-bg-deep: #12121f;
  --pg85-primary: #1E90FF;
  --pg85-accent: #FFEF94;
  --pg85-muted: #A9A9A9;
  --pg85-soft: #87CEEB;
  --pg85-pale: #AFEEEE;
  --pg85-text: #f3f6ff;
  --pg85-card: #20203c;
  --pg85-border: #2f2f55;
  --pg85-radius: 1.2rem;
  --pg85-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: radial-gradient(circle at 30% 0%, #232347 0%, #1A1A2E 55%, #12121f 100%);
  color: var(--pg85-text);
  font-size: 1.5rem;
  line-height: 2.25;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--pg85-soft);
  text-decoration: none;
}

a:hover {
  color: var(--pg85-accent);
}

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

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  line-height: 1.35;
  font-weight: 700;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2.0rem; color: var(--pg85-pale); }
h3 { font-size: 1.7rem; color: var(--pg85-accent); }

p { margin: 0 0 1rem; line-height: 1.65; }

/* ---------------- Layout primitives ---------------- */
.pg85-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.pg85-wrapper {
  padding-bottom: 8rem; /* clearance for fixed bottom nav */
}

.pg85-grid {
  display: grid;
  gap: 1rem;
}

/* ---------------- Header ---------------- */
.pg85-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.98), rgba(26, 26, 46, 0.92));
  border-bottom: 0.1rem solid var(--pg85-border);
  backdrop-filter: blur(8px);
}

.pg85-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg85-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.pg85-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
}

.pg85-logo span {
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pg85-accent), var(--pg85-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pg85-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.4rem;
  padding: 0 1.1rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  color: #1A1A2E;
}

.pg85-btn:active { transform: scale(0.96); }

.pg85-btn-primary {
  background: linear-gradient(135deg, var(--pg85-accent), #ffd34d);
  box-shadow: 0 0.3rem 0.8rem rgba(255, 239, 148, 0.35);
}

.pg85-btn-secondary {
  background: linear-gradient(135deg, var(--pg85-primary), #4aa8ff);
  color: #fff;
  box-shadow: 0 0.3rem 0.8rem rgba(30, 144, 255, 0.4);
}

.pg85-menu-btn {
  background: transparent;
  border: 0.1rem solid var(--pg85-border);
  color: var(--pg85-text);
  border-radius: 0.8rem;
  width: 3.4rem;
  height: 3.4rem;
  font-size: 1.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- Mobile menu ---------------- */
.pg85-mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--pg85-bg-deep);
  transition: max-height 0.3s ease;
}

.pg85-mobile-menu.pg85-open {
  max-height: 480px;
  border-bottom: 0.1rem solid var(--pg85-border);
}

.pg85-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.2rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.pg85-mobile-menu li {
  border-bottom: 0.1rem dashed var(--pg85-border);
}

.pg85-mobile-menu a {
  display: block;
  padding: 1rem 0.4rem;
  color: var(--pg85-text);
  font-size: 1.45rem;
}

.pg85-mobile-menu a:hover {
  color: var(--pg85-accent);
}

/* ---------------- Main ---------------- */
.pg85-main {
  padding-top: 6rem;
}

/* ---------------- Hero carousel ---------------- */
.pg85-carousel {
  position: relative;
  border-radius: var(--pg85-radius);
  overflow: hidden;
  margin-bottom: 1.4rem;
  box-shadow: var(--pg85-shadow);
}

.pg85-slide {
  display: none;
  position: relative;
}

.pg85-slide.pg85-active {
  display: block;
}

.pg85-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.pg85-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.2rem 1rem;
  background: linear-gradient(0deg, rgba(18, 18, 31, 0.9), rgba(18, 18, 31, 0));
}

.pg85-slide-cap h2 {
  margin: 0 0 0.4rem;
  color: var(--pg85-accent);
  font-size: 1.8rem;
}

.pg85-slide-cap p {
  margin: 0;
  font-size: 1.3rem;
  color: var(--pg85-pale);
}

.pg85-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
}

.pg85-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}

.pg85-dot.pg85-active {
  background: var(--pg85-accent);
}

/* ---------------- Section ---------------- */
.pg85-section {
  margin: 1.6rem 0;
}

.pg85-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 0.15rem solid var(--pg85-border);
}

.pg85-section-title h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--pg85-pale);
}

.pg85-section-title .material-icons,
.pg85-section-title i {
  font-size: 2rem;
  color: var(--pg85-accent);
}

/* ---------------- Game grid ---------------- */
.pg85-game-cat {
  margin-bottom: 1.8rem;
}

.pg85-cat-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.pg85-cat-head h3 {
  margin: 0;
  font-size: 1.5rem;
  text-transform: capitalize;
}

.pg85-cat-tag {
  font-size: 1.1rem;
  padding: 0.2rem 0.7rem;
  border-radius: 1rem;
  background: rgba(30, 144, 255, 0.18);
  color: var(--pg85-soft);
}

.pg85-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.pg85-game {
  display: block;
  text-align: center;
  cursor: pointer;
  background: var(--pg85-card);
  border: 0.1rem solid var(--pg85-border);
  border-radius: 0.9rem;
  padding: 0.5rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.pg85-game:hover {
  transform: translateY(-0.2rem);
  border-color: var(--pg85-primary);
}

.pg85-game img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 0.6rem;
  margin-bottom: 0.4rem;
}

.pg85-game-name {
  font-size: 1.15rem;
  color: var(--pg85-text);
  line-height: 1.3;
  min-height: 3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- Cards / info ---------------- */
.pg85-card {
  background: var(--pg85-card);
  border: 0.1rem solid var(--pg85-border);
  border-radius: var(--pg85-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.pg85-card h3 {
  margin-top: 0;
}

.pg85-promo-link {
  color: var(--pg85-accent);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 0.1rem dotted var(--pg85-accent);
}

.pg85-promo-link:hover {
  color: var(--pg85-pale);
}

.pg85-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.pg85-feature {
  background: var(--pg85-bg-alt);
  padding: 0.9rem;
  border-radius: 0.8rem;
  text-align: center;
}

.pg85-feature i,
.pg85-feature .material-icons {
  font-size: 2.2rem;
  color: var(--pg85-soft);
}

.pg85-feature p {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
}

/* ---------------- RTP table ---------------- */
.pg85-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
}

.pg85-rtp-table th,
.pg85-rtp-table td {
  border: 0.1rem solid var(--pg85-border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.pg85-rtp-table th {
  background: var(--pg85-bg-alt);
  color: var(--pg85-accent);
}

.pg85-rtp-bar {
  height: 0.7rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, var(--pg85-primary), var(--pg85-accent));
}

/* ---------------- Testimonial ---------------- */
.pg85-quote {
  background: var(--pg85-bg-alt);
  border-left: 0.3rem solid var(--pg85-accent);
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.pg85-quote span {
  display: block;
  margin-top: 0.4rem;
  color: var(--pg85-muted);
  font-size: 1.15rem;
}

/* ---------------- Payment / winners ---------------- */
.pg85-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pg85-chip {
  background: var(--pg85-bg-alt);
  border: 0.1rem solid var(--pg85-border);
  border-radius: 2rem;
  padding: 0.4rem 0.9rem;
  font-size: 1.2rem;
  color: var(--pg85-pale);
}

.pg85-winner {
  display: flex;
  justify-content: space-between;
  background: var(--pg85-bg-alt);
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.pg85-winner b {
  color: var(--pg85-accent);
}

/* ---------------- CTA ---------------- */
.pg85-cta {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.25), rgba(255, 239, 148, 0.15));
  border: 0.1rem solid var(--pg85-primary);
  border-radius: var(--pg85-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.4rem 0;
}

.pg85-cta h3 {
  margin-top: 0;
  color: var(--pg85-accent);
}

/* ---------------- Footer ---------------- */
.pg85-footer {
  margin-top: 2rem;
  padding: 1.6rem 1.2rem 2rem;
  background: var(--pg85-bg-deep);
  border-top: 0.15rem solid var(--pg85-border);
}

.pg85-footer-inner {
  max-width: 430px;
  margin: 0 auto;
}

.pg85-footer-brand {
  color: var(--pg85-muted);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.pg85-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.pg85-footer-links a {
  color: var(--pg85-soft);
  font-size: 1.2rem;
}

.pg85-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pg85-footer-promo .pg85-btn {
  font-size: 1.2rem;
  padding: 0 0.9rem;
  min-height: 3rem;
}

.pg85-copy {
  color: var(--pg85-muted);
  font-size: 1.1rem;
  border-top: 0.1rem solid var(--pg85-border);
  padding-top: 0.8rem;
  text-align: center;
}

/* ---------------- Bottom nav (mobile only) ---------------- */
.pg85-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: 6rem;
  background: linear-gradient(180deg, rgba(35, 35, 71, 0.98), rgba(18, 18, 31, 1));
  border-top: 0.15rem solid var(--pg85-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -0.4rem 1rem rgba(0, 0, 0, 0.4);
}

.pg85-nav-btn {
  flex: 1;
  min-width: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--pg85-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.pg85-nav-btn i,
.pg85-nav-btn .material-icons {
  font-size: 2.2rem;
}

.pg85-nav-btn span {
  font-size: 1.05rem;
}

.pg85-nav-btn:hover,
.pg85-nav-btn.pg85-active {
  color: var(--pg85-accent);
  transform: translateY(-0.15rem);
}

.pg85-nav-btn.pg85-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.4rem;
  height: 0.25rem;
  border-radius: 0.2rem;
  background: var(--pg85-accent);
}

/* ---------------- Desktop: hide bottom nav ---------------- */
@media (min-width: 769px) {
  .pg85-bottom-nav { display: none; }
  .pg85-container, .pg85-header-inner, .pg85-mobile-menu ul, .pg85-footer-inner {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .pg85-main { padding-bottom: 8rem; }
}

@media (max-width: 360px) {
  .pg85-game-grid { grid-template-columns: repeat(2, 1fr); }
}
