/* phwin 88 layout stylesheet - all custom classes use pg46- prefix */
/* Color palette: #F4A460 | #FFFACD | #262626 | #F08080 | #FFEBCD */

:root {
  --pg46-primary: #F4A460;
  --pg46-secondary: #FFFACD;
  --pg46-bg: #262626;
  --pg46-accent: #F08080;
  --pg46-cream: #FFEBCD;
  --pg46-text: #FFFACD;
  --pg46-muted: #d9cbb0;
  --pg46-card: #303030;
  --pg46-border: rgba(244, 164, 96, 0.25);
  --pg46-gold: #FFD27A;
  --pg46-radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

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

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

a {
  color: var(--pg46-primary);
  text-decoration: none;
}

h1, h2, h3, h4 {
  color: var(--pg46-cream);
  margin: 0 0 0.6rem;
  line-height: 1.4rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.7rem; }

p {
  margin: 0 0 1rem;
  color: var(--pg46-muted);
}

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

.pg46-wrapper {
  padding-top: 6rem;
  padding-bottom: 2rem;
}

.pg46-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--pg46-border);
}

.pg46-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.pg46-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

/* ============ Header ============ */
.pg46-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1f1f1f 0%, #2f2419 100%);
  border-bottom: 2px solid var(--pg46-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

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

.pg46-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.pg46-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--pg46-primary);
}

.pg46-brand-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pg46-gold);
  white-space: nowrap;
}

.pg46-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg46-menu-toggle {
  background: transparent;
  border: 1px solid var(--pg46-primary);
  color: var(--pg46-primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ============ Buttons ============ */
.pg46-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 40px;
  line-height: 1;
}

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

.pg46-btn-primary {
  background: linear-gradient(135deg, var(--pg46-primary), var(--pg46-accent));
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(244, 164, 96, 0.4);
}

.pg46-btn-secondary {
  background: var(--pg46-cream);
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(255, 235, 205, 0.25);
}

.pg46-btn-ghost {
  background: transparent;
  color: var(--pg46-primary);
  border: 1px solid var(--pg46-primary);
}

.pg46-btn-block {
  display: flex;
  width: 100%;
}

/* ============ Mobile menu ============ */
.pg46-mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: #1c1c1c;
  transition: max-height 0.3s ease;
}

.pg46-mobile-menu.pg46-menu-open {
  max-height: 480px;
}

.pg46-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem;
}

.pg46-mobile-menu li {
  border-bottom: 1px solid rgba(244, 164, 96, 0.12);
}

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

/* ============ Carousel ============ */
.pg46-carousel {
  position: relative;
  border-radius: var(--pg46-radius);
  overflow: hidden;
  margin: 1rem 0;
}

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

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

.pg46-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.pg46-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 1.6rem 1rem 1rem;
  color: var(--pg46-gold);
  font-weight: 700;
}

.pg46-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.pg46-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}

/* ============ Cards & games ============ */
.pg46-card {
  background: var(--pg46-card);
  border: 1px solid var(--pg46-border);
  border-radius: var(--pg46-radius);
  padding: 1rem;
}

.pg46-game-tile {
  background: var(--pg46-card);
  border: 1px solid var(--pg46-border);
  border-radius: var(--pg46-radius);
  padding: 0.6rem;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  display: block;
}

.pg46-game-tile:hover,
.pg46-game-tile:active {
  transform: translateY(-2px);
  border-color: var(--pg46-primary);
}

.pg46-game-tile img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.pg46-game-tile span {
  font-size: 1.15rem;
  color: var(--pg46-cream);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pg46-cat-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.4rem 0 0.8rem;
  color: var(--pg46-gold);
  font-size: 1.7rem;
}

/* ============ Features / lists ============ */
.pg46-feature-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: var(--pg46-card);
  border-radius: var(--pg46-radius);
  border-left: 3px solid var(--pg46-primary);
}

.pg46-feature-icon {
  font-size: 2.2rem;
  color: var(--pg46-primary);
  width: 32px;
  flex-shrink: 0;
}

.pg46-rtp-bar {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.pg46-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pg46-primary), var(--pg46-accent));
}

.pg46-faq-item {
  border-bottom: 1px solid var(--pg46-border);
  padding: 0.8rem 0;
}

.pg46-faq-item h3 {
  font-size: 1.45rem;
  color: var(--pg46-gold);
}

.pg46-testimonial {
  background: var(--pg46-card);
  border-radius: var(--pg46-radius);
  padding: 0.9rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg46-accent);
}

.pg46-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--pg46-border);
  font-size: 1.3rem;
}

.pg46-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  text-align: center;
}

.pg46-payment-grid div {
  background: var(--pg46-card);
  border-radius: 8px;
  padding: 0.8rem 0.4rem;
  font-size: 1.2rem;
  color: var(--pg46-cream);
}

/* ============ Footer ============ */
.pg46-footer {
  background: #1a1a1a;
  border-top: 2px solid var(--pg46-primary);
  padding: 2rem 0 7rem;
  margin-top: 2rem;
}

.pg46-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.pg46-footer-links a {
  background: var(--pg46-card);
  color: var(--pg46-cream);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 1.2rem;
  border: 1px solid var(--pg46-border);
}

.pg46-footer-copy {
  font-size: 1.2rem;
  color: var(--pg46-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ============ Bottom navigation ============ */
.pg46-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #1f1f1f, #161616);
  border-top: 2px solid var(--pg46-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.5);
}

.pg46-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg46-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.pg46-bottom-nav-btn .material-icons,
.pg46-bottom-nav-btn ion-icon {
  font-size: 24px;
}

.pg46-bottom-nav-btn .fas,
.pg46-bottom-nav-btn .far {
  font-size: 22px;
}

.pg46-bottom-nav-btn:active {
  transform: scale(0.92);
}

.pg46-bottom-nav-active,
.pg46-bottom-nav-btn:hover {
  color: var(--pg46-gold);
}

.pg46-nav-badge {
  position: relative;
}

.pg46-nav-badge::after {
  content: "1";
  position: absolute;
  top: 6px;
  right: 18px;
  background: var(--pg46-accent);
  color: #fff;
  font-size: 0.9rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Helpers ============ */
.pg46-text-gold { color: var(--pg46-gold); }
.pg46-text-coral { color: var(--pg46-accent); }
.pg46-mt-1 { margin-top: 0.6rem; }
.pg46-mt-2 { margin-top: 1.2rem; }
.pg46-promo-link {
  color: var(--pg46-primary);
  font-weight: 700;
  cursor: pointer;
}
.pg46-promo-link:hover {
  text-decoration: underline;
}

/* ============ Responsive ============ */
@media (max-width: 430px) {
  .pg46-container { padding: 0 1rem; }
  .pg46-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .pg46-game-tile img { height: 64px; }
  h1 { font-size: 2rem; }
  main { padding-bottom: 80px; }
}

@media (min-width: 769px) {
  .pg46-bottom-nav { display: none; }
  .pg46-footer { padding-bottom: 2rem; }
  .pg46-container { max-width: 760px; }
}
