/* ===========================================================
   888p games - core stylesheet
   Every custom class uses the "w0b71-" prefix
   Palette: #3A3A3A #4A4A4A #E65100 #FFBF00 #2C3E50
   =========================================================== */

:root {
  --w0b71-bg-dark: #3A3A3A;
  --w0b71-bg-mid: #4A4A4A;
  --w0b71-primary: #E65100;
  --w0b71-accent: #FFBF00;
  --w0b71-deep: #2C3E50;
  --w0b71-text-light: #FFFFFF;
  --w0b71-text-dim: #E6E6E6;
  --w0b71-border-soft: rgba(255, 255, 255, 0.08);
  --w0b71-radius: 12px;
  --w0b71-radius-sm: 8px;
  --w0b71-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--w0b71-bg-dark);
  color: var(--w0b71-text-light);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

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

a {
  color: var(--w0b71-accent);
  text-decoration: none;
}

.w0b71-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

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

/* ---------------- Header ---------------- */
.w0b71-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--w0b71-deep) 0%, var(--w0b71-bg-mid) 100%);
  border-bottom: 2px solid var(--w0b71-primary);
  z-index: 1000;
  box-shadow: var(--w0b71-shadow);
}

.w0b71-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 0.6rem;
}

.w0b71-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.w0b71-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.w0b71-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w0b71-accent);
  white-space: nowrap;
}

.w0b71-logo-text span {
  color: var(--w0b71-text-light);
}

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

.w0b71-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: var(--w0b71-radius-sm);
  padding: 0.7rem 1.2rem;
  font-size: 1.35rem;
  min-height: 38px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

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

.w0b71-btn-login {
  background: transparent;
  color: var(--w0b71-text-light);
  border: 1.5px solid var(--w0b71-accent);
}

.w0b71-btn-register {
  background: linear-gradient(135deg, var(--w0b71-primary), var(--w0b71-accent));
  color: var(--w0b71-deep);
  font-weight: 800;
}

.w0b71-menu-btn {
  background: transparent;
  border: none;
  color: var(--w0b71-text-light);
  font-size: 1.9rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

/* ---------------- Mobile nav menu ---------------- */
.w0b71-nav-menu {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--w0b71-bg-mid);
  border-bottom: 2px solid var(--w0b71-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}

.w0b71-nav-open {
  max-height: 420px;
}

.w0b71-nav-menu ul {
  list-style: none;
  padding: 0.6rem 0;
}

.w0b71-nav-menu li a {
  display: block;
  padding: 1rem 1.6rem;
  color: var(--w0b71-text-light);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--w0b71-border-soft);
}

.w0b71-nav-menu li a:active {
  background: rgba(230, 81, 0, 0.25);
}

/* ---------------- Main ---------------- */
.w0b71-main {
  padding-top: 70px;
  padding-bottom: 90px;
}

.w0b71-section {
  margin: 2rem 0;
}

.w0b71-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w0b71-accent);
  border-left: 4px solid var(--w0b71-primary);
  padding-left: 0.8rem;
  margin-bottom: 1rem;
}

.w0b71-h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--w0b71-accent);
  line-height: 1.25;
  margin: 1.2rem 0;
}

.w0b71-text-block {
  font-size: 1.4rem;
  color: var(--w0b71-text-dim);
  margin-bottom: 1rem;
}

.w0b71-text-block strong {
  color: var(--w0b71-accent);
}

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

.w0b71-slide {
  display: none;
  cursor: pointer;
}

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

.w0b71-slide img {
  width: 100%;
  height: auto;
}

.w0b71-hero-cta {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: linear-gradient(135deg, var(--w0b71-primary), var(--w0b71-accent));
  color: var(--w0b71-deep);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: var(--w0b71-shadow);
}

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

.w0b71-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

/* ---------------- Promo bar / CTA ---------------- */
.w0b71-cta-bar {
  display: flex;
  gap: 0.8rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}

.w0b71-cta-primary {
  flex: 1 1 100%;
  background: linear-gradient(135deg, var(--w0b71-primary), var(--w0b71-accent));
  color: var(--w0b71-deep);
  text-align: center;
  padding: 1.2rem;
  border-radius: var(--w0b71-radius);
  font-size: 1.6rem;
  font-weight: 800;
}

.w0b71-link-text {
  color: var(--w0b71-accent);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------------- Game sections ---------------- */
.w0b71-filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
}

.w0b71-filter-btn {
  background: var(--w0b71-bg-mid);
  color: var(--w0b71-text-light);
  border: 1px solid var(--w0b71-border-soft);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  white-space: nowrap;
  cursor: pointer;
}

.w0b71-filter-active {
  background: var(--w0b71-primary);
  color: var(--w0b71-text-light);
  border-color: var(--w0b71-primary);
}

.w0b71-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.w0b71-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--w0b71-bg-mid);
  border-radius: var(--w0b71-radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  border: 1px solid var(--w0b71-border-soft);
  transition: transform 0.15s ease;
}

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

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

.w0b71-game-name {
  font-size: 1.05rem;
  color: var(--w0b71-text-light);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- Info cards / features ---------------- */
.w0b71-card {
  background: var(--w0b71-bg-mid);
  border-radius: var(--w0b71-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--w0b71-border-soft);
}

.w0b71-card h3 {
  font-size: 1.5rem;
  color: var(--w0b71-accent);
  margin-bottom: 0.6rem;
}

.w0b71-card p {
  font-size: 1.35rem;
  color: var(--w0b71-text-dim);
}

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

.w0b71-feature-item {
  background: var(--w0b71-bg-mid);
  padding: 1rem;
  border-radius: var(--w0b71-radius-sm);
  border-left: 3px solid var(--w0b71-primary);
}

.w0b71-feature-item .ico {
  font-size: 1.8rem;
  color: var(--w0b71-accent);
  margin-bottom: 0.4rem;
}

.w0b71-feature-item h4 {
  font-size: 1.3rem;
  color: var(--w0b71-text-light);
  margin-bottom: 0.3rem;
}

.w0b71-feature-item p {
  font-size: 1.2rem;
  color: var(--w0b71-text-dim);
}

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

.w0b71-rtp-table th,
.w0b71-rtp-table td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--w0b71-border-soft);
  text-align: left;
}

.w0b71-rtp-table th {
  color: var(--w0b71-accent);
}

.w0b71-rtp-bar {
  background: var(--w0b71-primary);
  height: 6px;
  border-radius: 3px;
}

/* ---------------- Testimonials ---------------- */
.w0b71-testimonial {
  background: var(--w0b71-bg-mid);
  padding: 1rem;
  border-radius: var(--w0b71-radius-sm);
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--w0b71-accent);
}

.w0b71-testimonial .who {
  font-weight: 700;
  color: var(--w0b71-accent);
  margin-bottom: 0.3rem;
}

/* ---------------- Payment icons ---------------- */
.w0b71-pay-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.w0b71-pay-chip {
  background: var(--w0b71-bg-mid);
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  font-size: 1.2rem;
  border: 1px solid var(--w0b71-border-soft);
}

/* ---------------- Winners ---------------- */
.w0b71-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--w0b71-border-soft);
  font-size: 1.25rem;
}

.w0b71-winner-row .amt {
  color: var(--w0b71-accent);
  font-weight: 700;
}

/* ---------------- Footer ---------------- */
.w0b71-footer {
  background: var(--w0b71-deep);
  padding: 2rem 1.2rem 7rem;
  border-top: 2px solid var(--w0b71-primary);
  color: var(--w0b71-text-dim);
  font-size: 1.3rem;
}

.w0b71-footer h4 {
  color: var(--w0b71-accent);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.w0b71-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.w0b71-footer-links a {
  color: var(--w0b71-text-dim);
  font-size: 1.2rem;
}

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

.w0b71-footer-promo button {
  flex: 1 1 45%;
  background: var(--w0b71-primary);
  color: var(--w0b71-text-light);
  border: none;
  padding: 0.7rem;
  border-radius: var(--w0b71-radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 1.2rem;
}

.w0b71-copyright {
  text-align: center;
  font-size: 1.15rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------- Bottom nav ---------------- */
.w0b71-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(135deg, var(--w0b71-deep), var(--w0b71-bg-mid));
  border-top: 2px solid var(--w0b71-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.4);
}

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

.w0b71-bnav-btn:active {
  transform: scale(0.92);
}

.w0b71-bnav-btn .ico {
  font-size: 2.2rem;
}

.w0b71-bnav-btn .material-icons {
  font-size: 2.2rem;
}

.w0b71-bnav-active {
  color: var(--w0b71-accent);
}

.w0b71-bnav-promo {
  color: var(--w0b71-accent);
}

.w0b71-bnav-badge {
  position: absolute;
  top: 4px;
  right: 14px;
  background: var(--w0b71-primary);
  color: #fff;
  font-size: 0.9rem;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------------- Desktop ---------------- */
@media (min-width: 769px) {
  .w0b71-bnav { display: none; }
  .w0b71-header,
  .w0b71-nav-menu,
  .w0b71-footer { max-width: 430px; }
}
