/*!
 * ph3656.homes - design.css
 * Mobile-first gaming site styles.
 * All custom classes use the s703- prefix.
 * Palette: #FFCCCB | #999999 | #0D1117 | #3C3C3C | #BDC3C7 | #2F2F2F
 */

:root {
  --s703-primary: #FFCCCB;
  --s703-accent: #f6c1c0;
  --s703-bg: #0D1117;
  --s703-bg2: #161b22;
  --s703-bg3: #3C3C3C;
  --s703-dark: #2F2F2F;
  --s703-text: #BDC3C7;
  --s703-muted: #999999;
  --s703-white: #ffffff;
  --s703-gold: #ffd56b;

  --s703-header-h: 56px;
  --s703-bottomnav-h: 60px;
  --s703-radius: 12px;
  --s703-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --s703-transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--s703-bg);
  color: var(--s703-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  color: var(--s703-white);
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

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

.s703-wrapper {
  padding: 1.6rem 0;
}

main {
  padding-bottom: calc(var(--s703-bottomnav-h) + 16px);
}

/* ===== Header ===== */
.s703-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--s703-header-h);
  background: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid rgba(255, 204, 203, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  transition: box-shadow var(--s703-transition);
}

.s703-header.s703-scrolled {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.s703-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s703-white);
  font-weight: 700;
  font-size: 1.6rem;
}

.s703-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.s703-brand .s703-accent {
  color: var(--s703-primary);
}

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

.s703-btn {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--s703-transition), opacity var(--s703-transition);
  min-height: 36px;
}

.s703-btn:active {
  transform: scale(0.94);
}

.s703-btn-primary {
  background: linear-gradient(135deg, var(--s703-primary), #ff8e8e);
  color: #2a0d0d;
}

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

.s703-menu-btn {
  background: transparent;
  border: none;
  color: var(--s703-white);
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
}

/* ===== Mobile dropdown menu ===== */
.s703-mobile-menu {
  position: fixed;
  top: var(--s703-header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--s703-bg2);
  border-bottom: 1px solid rgba(255, 204, 203, 0.18);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  z-index: 9999;
  padding: 0 1.2rem;
}

.s703-mobile-menu.s703-open {
  max-height: 460px;
  padding: 1rem 1.2rem 1.4rem;
}

.s703-mobile-menu a {
  display: block;
  padding: 0.9rem 0.6rem;
  border-bottom: 1px solid rgba(189, 195, 199, 0.12);
  color: var(--s703-text);
  font-size: 1.35rem;
}

.s703-mobile-menu a:active {
  color: var(--s703-primary);
}

/* ===== Hero / Carousel ===== */
.s703-hero {
  margin-top: calc(var(--s703-header-h) + 8px);
  position: relative;
  border-radius: var(--s703-radius);
  overflow: hidden;
  box-shadow: var(--s703-shadow);
}

.s703-carousel {
  position: relative;
  width: 100%;
  height: 200px;
}

.s703-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}

.s703-slide.s703-active {
  opacity: 1;
}

.s703-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s703-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(13, 17, 23, 0.9), transparent);
  color: var(--s703-white);
}

.s703-hero-overlay h2 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}

/* ===== Section ===== */
.s703-section {
  padding: 1.8rem 0;
}

.s703-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.s703-section-title i {
  color: var(--s703-primary);
}

.s703-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 1.1rem;
  background: rgba(255, 204, 203, 0.15);
  color: var(--s703-primary);
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

/* ===== Game grid ===== */
.s703-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.s703-card {
  background: var(--s703-bg2);
  border-radius: var(--s703-radius);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform var(--s703-transition), box-shadow var(--s703-transition);
  padding: 0.5rem 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.s703-card:active {
  transform: scale(0.95);
}

.s703-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.s703-card .s703-card-name {
  font-size: 1.1rem;
  color: var(--s703-text);
  line-height: 1.25;
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Info blocks ===== */
.s703-panel {
  background: var(--s703-bg2);
  border-radius: var(--s703-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border-left: 3px solid var(--s703-primary);
}

.s703-panel h2 {
  font-size: 1.6rem;
}

.s703-list {
  padding-left: 1.6rem;
  margin: 0;
}

.s703-list li {
  margin-bottom: 0.5rem;
}

.s703-promo-link {
  color: var(--s703-primary);
  font-weight: 700;
  cursor: pointer;
}

.s703-promo-link:hover {
  text-decoration: underline;
}

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

.s703-rtp-table th,
.s703-rtp-table td {
  border: 1px solid rgba(189, 195, 199, 0.15);
  padding: 0.7rem 0.6rem;
  text-align: left;
}

.s703-rtp-table th {
  background: var(--s703-dark);
  color: var(--s703-white);
}

.s703-rtp-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.s703-rtp-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--s703-primary), var(--s703-gold));
}

/* ===== Testimonials / Winners ===== */
.s703-row {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-snap-type: x mandatory;
}

.s703-chip {
  flex: 0 0 auto;
  width: 150px;
  background: var(--s703-bg2);
  border-radius: var(--s703-radius);
  padding: 0.9rem;
  scroll-snap-align: start;
}

.s703-chip .s703-user {
  font-weight: 700;
  color: var(--s703-white);
  font-size: 1.25rem;
}

.s703-chip .s703-amt {
  color: var(--s703-gold);
  font-weight: 700;
}

/* ===== Payment ===== */
.s703-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.s703-pay span {
  background: var(--s703-bg2);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--s703-text);
}

/* ===== Footer ===== */
.s703-footer {
  background: var(--s703-bg2);
  padding: 1.6rem 1.2rem;
  border-top: 1px solid rgba(255, 204, 203, 0.18);
}

.s703-footer h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.s703-footer p {
  font-size: 1.2rem;
  color: var(--s703-muted);
}

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

.s703-footer-links a {
  color: var(--s703-text);
  font-size: 1.2rem;
  background: var(--s703-dark);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
}

.s703-promo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.s703-copyright {
  font-size: 1.1rem;
  color: var(--s703-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ===== Mobile bottom nav ===== */
.s703-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--s703-bottomnav-h);
  background: rgba(13, 17, 23, 0.98);
  border-top: 1px solid rgba(255, 204, 203, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.s703-bottomnav-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--s703-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 60px;
  min-height: 60px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color var(--s703-transition), transform var(--s703-transition);
}

.s703-bottomnav-btn .material-icons,
.s703-bottomnav-btn i,
.s703-bottomnav-btn ion-icon,
.s703-bottomnav-btn bi {
  font-size: 22px;
}

.s703-bottomnav-btn:active {
  transform: scale(0.9);
}

.s703-bottomnav-btn.s703-current,
.s703-bottomnav-btn:hover {
  color: var(--s703-primary);
}

.s703-bottomnav-btn.s703-center {
  position: relative;
}

.s703-bottomnav-btn.s703-center::before {
  content: "";
  position: absolute;
  top: -14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s703-primary), #ff8e8e);
  z-index: -1;
  box-shadow: 0 4px 12px rgba(255, 142, 142, 0.5);
}

.s703-bottomnav-btn.s703-center i,
.s703-bottomnav-btn.s703-center ion-icon {
  color: #2a0d0d;
  font-weight: 900;
}

/* ===== Reveal animation ===== */
.s703-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.s703-reveal.s703-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Desktop: hide bottom nav ===== */
@media (min-width: 769px) {
  .s703-bottomnav {
    display: none;
  }
  body,
  .s703-container,
  .s703-header,
  .s703-mobile-menu {
    max-width: 430px;
  }
  main {
    padding-bottom: 24px;
  }
}
