/* 1plusgame styles - prefix w4595- | palette #EEE8AA / #2E4057 */
:root {
  --w4595-bg: #2E4057;
  --w4595-bg-deep: #1f2c3d;
  --w4595-bg-soft: #3a516b;
  --w4595-text: #EEE8AA;
  --w4595-text-dim: #d6cfa0;
  --w4595-primary: #EEE8AA;
  --w4595-accent: #f0d878;
  --w4595-accent-hot: #e8b84a;
  --w4595-border: rgba(238, 232, 170, 0.22);
  --w4595-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --w4595-radius: 0.8rem;
  --w4595-header-h: 5.6rem;
  --w4595-bottom-h: 6.2rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5rem;
  background: var(--w4595-bg);
  color: var(--w4595-text);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--w4595-accent); text-decoration: none; }
a:hover { color: #fff7c2; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.w4595-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.w4595-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.w4595-main {
  padding-top: calc(var(--w4595-header-h) + 1rem);
  padding-bottom: 2rem;
}

/* Header */
.w4595-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #243447 0%, #2E4057 100%);
  border-bottom: 1px solid var(--w4595-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.w4595-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: var(--w4595-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  gap: 0.8rem;
}
.w4595-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1;
}
.w4595-logo img {
  width: 3rem; height: 3rem;
  border-radius: 0.6rem;
  object-fit: cover;
}
.w4595-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w4595-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w4595-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w4595-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 4.4rem;
  padding: 0 1.2rem;
  border-radius: 2.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.w4595-btn:active { transform: scale(0.96); }
.w4595-btn-register {
  background: linear-gradient(135deg, #f0d878, #e8b84a);
  color: #1f2c3d;
  box-shadow: 0 4px 12px rgba(232, 184, 74, 0.35);
}
.w4595-btn-login {
  background: transparent;
  color: var(--w4595-primary);
  border: 1.5px solid var(--w4595-primary);
}
.w4595-btn-primary {
  background: linear-gradient(135deg, #f0d878, #e8b84a);
  color: #1f2c3d;
  font-weight: 700;
  width: 100%;
  min-height: 4.8rem;
  font-size: 1.4rem;
  border-radius: var(--w4595-radius);
  box-shadow: var(--w4595-shadow);
}
.w4595-btn-outline {
  border: 1.5px solid var(--w4595-primary);
  color: var(--w4595-primary);
  background: rgba(238, 232, 170, 0.06);
  min-height: 4.4rem;
  padding: 0 1.4rem;
  border-radius: 2.2rem;
  font-weight: 700;
  font-size: 1.2rem;
}
.w4595-menu-toggle {
  width: 4.4rem; height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.8rem;
  color: var(--w4595-primary);
  font-size: 2.2rem;
}

/* Mobile menu */
.w4595-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.w4595-overlay-show { opacity: 1; visibility: visible; }
.w4595-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(82vw, 320px);
  height: 100%;
  background: linear-gradient(180deg, #243447, #1f2c3d);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
  border-left: 1px solid var(--w4595-border);
}
.w4595-menu-open { transform: translateX(0); }
.w4595-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.w4595-menu-close {
  width: 4.4rem; height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  color: var(--w4595-primary);
}
.w4595-menu-list { display: flex; flex-direction: column; gap: 0.4rem; }
.w4595-menu-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.8rem;
  padding: 0 1.2rem;
  border-radius: 0.8rem;
  color: var(--w4595-text);
  font-size: 1.4rem;
  font-weight: 600;
  transition: background 0.18s ease;
}
.w4595-menu-list a:hover,
.w4595-menu-list a:active {
  background: rgba(238, 232, 170, 0.1);
  color: var(--w4595-accent);
}
.w4595-menu-list i,
.w4595-menu-list .material-icons,
.w4595-menu-list ion-icon {
  font-size: 2rem;
  width: 2.4rem;
  text-align: center;
}

/* Hero / Carousel */
.w4595-carousel {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  margin-bottom: 1.6rem;
  box-shadow: var(--w4595-shadow);
  aspect-ratio: 16 / 9;
  background: var(--w4595-bg-deep);
}
.w4595-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: pointer;
}
.w4595-slide-active { opacity: 1; z-index: 1; }
.w4595-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.w4595-carousel-dots {
  position: absolute;
  bottom: 1rem; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}
.w4595-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: rgba(238, 232, 170, 0.4);
  transition: all 0.2s ease;
}
.w4595-dot-active {
  background: var(--w4595-accent);
  width: 1.8rem;
  border-radius: 0.4rem;
}
.w4595-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3.6rem; height: 3.6rem;
  border-radius: 50%;
  background: rgba(31, 44, 61, 0.65);
  color: var(--w4595-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.w4595-carousel-prev { left: 0.8rem; }
.w4595-carousel-next { right: 0.8rem; }

/* Titles */
.w4595-h1 {
  font-size: 1.8rem;
  line-height: 2.4rem;
  font-weight: 800;
  color: var(--w4595-primary);
  margin-bottom: 1.2rem;
  text-align: center;
}
.w4595-h2 {
  font-size: 1.6rem;
  line-height: 2.2rem;
  font-weight: 700;
  color: var(--w4595-accent);
  margin: 2rem 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w4595-h3 {
  font-size: 1.4rem;
  line-height: 2rem;
  font-weight: 700;
  color: var(--w4595-primary);
  margin: 1.2rem 0 0.8rem;
}
.w4595-section {
  margin-bottom: 2rem;
  padding: 1.4rem;
  background: rgba(31, 44, 61, 0.55);
  border: 1px solid var(--w4595-border);
  border-radius: 1.2rem;
}
.w4595-text {
  font-size: 1.3rem;
  line-height: 2rem;
  color: var(--w4595-text-dim);
  margin-bottom: 1rem;
}
.w4595-text strong,
.w4595-promo-link {
  color: var(--w4595-accent);
  font-weight: 700;
  cursor: pointer;
}
.w4595-promo-link:hover { text-decoration: underline; }

/* Game grid */
.w4595-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.w4595-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.w4595-game-card:active { transform: scale(0.94); }
.w4595-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  object-fit: cover;
  border: 1.5px solid var(--w4595-border);
  background: var(--w4595-bg-deep);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.w4595-game-card span {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  font-size: 1rem;
  line-height: 1.3rem;
  text-align: center;
  color: var(--w4595-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.w4595-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(238, 232, 170, 0.12);
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--w4595-accent);
  margin-bottom: 1rem;
}

/* Feature cards */
.w4595-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.w4595-card {
  background: var(--w4595-bg-soft);
  border: 1px solid var(--w4595-border);
  border-radius: var(--w4595-radius);
  padding: 1.2rem;
}
.w4595-card-icon {
  font-size: 2.4rem;
  color: var(--w4595-accent);
  margin-bottom: 0.6rem;
}
.w4595-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: var(--w4595-primary);
}
.w4595-card p {
  font-size: 1.1rem;
  line-height: 1.6rem;
  color: var(--w4595-text-dim);
}

/* FAQ */
.w4595-faq-item {
  border: 1px solid var(--w4595-border);
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
  overflow: hidden;
  background: rgba(58, 81, 107, 0.4);
}
.w4595-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.8rem;
  padding: 1rem 1.2rem;
  text-align: left;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--w4595-primary);
}
.w4595-faq-a {
  display: none;
  padding: 0 1.2rem 1.2rem;
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--w4595-text-dim);
}
.w4595-faq-open .w4595-faq-a { display: block; }
.w4595-faq-open .w4595-faq-q { color: var(--w4595-accent); }

/* Testimonials */
.w4595-testimonial {
  background: var(--w4595-bg-soft);
  border-left: 3px solid var(--w4595-accent);
  border-radius: 0 0.8rem 0.8rem 0;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.w4595-testimonial p {
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--w4595-text-dim);
  font-style: italic;
  margin-bottom: 0.6rem;
}
.w4595-testimonial .w4595-author {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--w4595-accent);
}

/* CTA / App */
.w4595-cta {
  text-align: center;
  padding: 2rem 1.4rem;
  background: linear-gradient(145deg, #3a516b, #243447);
  border-radius: 1.2rem;
  border: 1px solid var(--w4595-border);
  margin-bottom: 2rem;
}
.w4595-cta p {
  font-size: 1.3rem;
  line-height: 2rem;
  color: var(--w4595-text-dim);
  margin: 1rem 0 1.4rem;
}
.w4595-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1.2rem 0;
}
.w4595-steps { counter-reset: step; }
.w4595-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.w4595-step-num {
  flex-shrink: 0;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d878, #e8b84a);
  color: #1f2c3d;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.w4595-step-body h3 {
  font-size: 1.3rem;
  color: var(--w4595-primary);
  margin-bottom: 0.3rem;
}
.w4595-step-body p {
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--w4595-text-dim);
}

/* Payment icons row */
.w4595-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.w4595-pay-item {
  min-width: 7rem;
  padding: 1rem 0.8rem;
  background: var(--w4595-bg-soft);
  border-radius: 0.8rem;
  text-align: center;
  border: 1px solid var(--w4595-border);
  font-size: 1.1rem;
  font-weight: 600;
}
.w4595-pay-item i,
.w4595-pay-item .material-icons {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
  color: var(--w4595-accent);
}

/* SEO links */
.w4595-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin: 1rem 0;
}
.w4595-seo-links a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--w4595-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */
.w4595-footer {
  background: var(--w4595-bg-deep);
  border-top: 1px solid var(--w4595-border);
  padding: 2.4rem 1.2rem 2rem;
  max-width: 430px;
  margin: 0 auto;
}
.w4595-footer-brand {
  font-size: 1.3rem;
  line-height: 2rem;
  color: var(--w4595-text-dim);
  margin-bottom: 1.4rem;
}
.w4595-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin-bottom: 1.6rem;
}
.w4595-footer-links a {
  font-size: 1.2rem;
  color: var(--w4595-text);
  min-height: 3.6rem;
  display: flex;
  align-items: center;
}
.w4595-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.w4595-footer-promo .w4595-btn {
  min-height: 4rem;
  font-size: 1.1rem;
  padding: 0 1rem;
}
.w4595-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(238, 232, 170, 0.55);
  padding-top: 1rem;
  border-top: 1px solid var(--w4595-border);
}

/* Mobile bottom nav */
.w4595-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--w4595-bottom-h);
  background: linear-gradient(0deg, #1a2635 0%, #243447 100%);
  border-top: 1px solid var(--w4595-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}
.w4595-bottom-nav a,
.w4595-bottom-nav button {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--w4595-text-dim);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.18s ease, transform 0.18s ease;
}
.w4595-bottom-nav a i,
.w4595-bottom-nav a .material-icons,
.w4595-bottom-nav a ion-icon,
.w4595-bottom-nav button i,
.w4595-bottom-nav button .material-icons,
.w4595-bottom-nav button ion-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.w4595-bottom-nav a:active,
.w4595-bottom-nav button:active {
  transform: scale(0.9);
  color: var(--w4595-accent);
}
.w4595-bottom-nav .w4595-nav-active {
  color: var(--w4595-accent);
}
.w4595-bottom-nav .w4595-nav-active i,
.w4595-bottom-nav .w4595-nav-active .material-icons {
  filter: drop-shadow(0 0 6px rgba(240, 216, 120, 0.55));
}

/* Desktop tweaks */
@media (min-width: 769px) {
  .w4595-bottom-nav { display: none; }
  .w4595-main { padding-bottom: 2rem; }
  body { background: #1a2635; }
  .w4595-header-inner,
  .w4595-wrapper,
  .w4595-container,
  .w4595-footer { max-width: 430px; }
}
@media (max-width: 768px) {
  .w4595-main { padding-bottom: 80px; }
  .w4595-footer { padding-bottom: 8.4rem; }
}
@media (max-width: 360px) {
  .w4595-game-grid { grid-template-columns: repeat(3, 1fr); }
  .w4595-btn-register,
  .w4595-btn-login { padding: 0 0.9rem; font-size: 1.1rem; }
}
