/* ===========================================================
   Geometry Dash - style-a231.css
   Palette: #FFAA00 | #EEE8AA | #0E1621 | #CD853F | #FF8C00
   Dark base background, light text, warm orange accents.
   All custom classes use the "wa231-" prefix.
   Mobile-first, max-width 430px layout.
   =========================================================== */

:root {
  --wa231-primary: #FFAA00;
  --wa231-secondary: #FF8C00;
  --wa231-accent: #CD853F;
  --wa231-bg: #0E1621;
  --wa231-bg-soft: #16202E;
  --wa231-bg-card: #1B2738;
  --wa231-text: #EEE8AA;
  --wa231-text-soft: #B8B09A;
  --wa231-text-dim: #8A8472;
  --wa231-border: rgba(255, 170, 0, 0.18);
  --wa231-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --wa231-radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--wa231-bg);
  color: var(--wa231-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--wa231-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: #fff; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.65rem; }
p { margin: 0 0 1em; }

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

/* ---------------- Header ---------------- */
.wa231-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0E1621 0%, #0E1621EE 100%);
  border-bottom: 1px solid var(--wa231-border);
  backdrop-filter: blur(8px);
  transition: box-shadow .25s ease;
}
.wa231-header.wa231-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.5); }

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

.wa231-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 1;
  min-width: 0;
}
.wa231-brand img {
  width: 28px; height: 28px;
  border-radius: 8px;
  flex: 0 0 auto;
}
.wa231-brand-name {
  font-weight: 700;
  color: #fff;
  font-size: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa231-brand-name span { color: var(--wa231-primary); }

.wa231-header-btns {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.wa231-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  padding: .65rem 1.1rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  min-height: 36px;
  text-decoration: none;
  font-family: inherit;
}
.wa231-btn:hover { text-decoration: none; transform: translateY(-1px); }
.wa231-btn:active { transform: translateY(0); }

.wa231-btn-login {
  background: transparent;
  color: var(--wa231-text);
  border: 1px solid var(--wa231-border);
}
.wa231-btn-register {
  background: linear-gradient(135deg, var(--wa231-primary), var(--wa231-secondary));
  color: #0E1621;
  box-shadow: 0 4px 14px rgba(255,140,0,.35);
}

.wa231-icon-btn {
  background: transparent;
  border: none;
  color: var(--wa231-text);
  font-size: 1.9rem;
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- Mobile menu ---------------- */
.wa231-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.wa231-menu-backdrop.wa231-show { opacity: 1; visibility: visible; }

.wa231-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 82%;
  max-width: 340px;
  height: 100%;
  background: var(--wa231-bg-soft);
  z-index: 9999;
  padding: 6rem 1.5rem 2rem;
  overflow-y: auto;
  transition: right .28s ease;
  border-left: 1px solid var(--wa231-border);
}
.wa231-mobile-menu.wa231-open { right: 0; }

.wa231-mobile-menu h3 {
  color: var(--wa231-primary);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 1.4rem 0 .6rem;
}
.wa231-mobile-menu a {
  display: block;
  padding: .9rem .6rem;
  color: var(--wa231-text);
  border-bottom: 1px solid rgba(255,170,0,.08);
  font-size: 1.45rem;
}
.wa231-mobile-menu a:hover { color: var(--wa231-primary); text-decoration: none; }

.wa231-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: none;
  color: var(--wa231-text);
  font-size: 2rem;
  cursor: pointer;
}

/* ---------------- Main / Sections ---------------- */
main {
  padding-top: 60px;
  padding-bottom: 80px;
}

.wa231-section {
  padding: 1.8rem 0;
}
.wa231-section-title {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #fff;
}
.wa231-section-title i { color: var(--wa231-primary); }

.wa231-section-intro {
  color: var(--wa231-text-soft);
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

/* ---------------- Hero / Carousel ---------------- */
.wa231-hero {
  position: relative;
  border-radius: var(--wa231-radius);
  overflow: hidden;
  margin: 1.2rem 0;
  box-shadow: var(--wa231-shadow);
}
.wa231-slides { position: relative; }
.wa231-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.wa231-slide.wa231-active { display: block; }
.wa231-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.wa231-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem 1.3rem;
  background: linear-gradient(180deg, transparent, rgba(14,22,33,.92));
}
.wa231-slide-overlay h2 {
  margin: 0 0 .25rem;
  font-size: 1.7rem;
  color: #fff;
}
.wa231-slide-overlay p {
  margin: 0;
  color: var(--wa231-text);
  font-size: 1.3rem;
}
.wa231-slide-dots {
  position: absolute;
  bottom: .8rem; right: 1rem;
  display: flex; gap: .4rem;
  z-index: 2;
}
.wa231-slide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; padding: 0; cursor: pointer;
}
.wa231-slide-dot.wa231-active { background: var(--wa231-primary); width: 18px; border-radius: 4px; }

/* ---------------- Category chips ---------------- */
.wa231-cat-chips {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .3rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.wa231-cat-chips::-webkit-scrollbar { display: none; }
.wa231-cat-chip {
  flex: 0 0 auto;
  padding: .55rem 1rem;
  background: var(--wa231-bg-card);
  border: 1px solid var(--wa231-border);
  color: var(--wa231-text);
  border-radius: 999px;
  font-size: 1.3rem;
  cursor: pointer;
  white-space: nowrap;
}
.wa231-cat-chip.wa231-active,
.wa231-cat-chip:hover {
  background: linear-gradient(135deg, var(--wa231-primary), var(--wa231-secondary));
  color: #0E1621;
  border-color: transparent;
}

/* ---------------- Game grid ---------------- */
.wa231-game-section { padding: 1rem 0; }
.wa231-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}
.wa231-game-card {
  background: var(--wa231-bg-card);
  border: 1px solid var(--wa231-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  text-align: center;
}
.wa231-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--wa231-primary);
  box-shadow: 0 8px 18px rgba(255,140,0,.18);
}
.wa231-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0a121d;
}
.wa231-game-name {
  display: block;
  font-size: 1.15rem;
  color: var(--wa231-text);
  padding: .35rem .25rem .5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- Info / content cards ---------------- */
.wa231-card {
  background: var(--wa231-bg-card);
  border: 1px solid var(--wa231-border);
  border-radius: var(--wa231-radius);
  padding: 1.3rem;
  margin-bottom: 1rem;
}
.wa231-card h2,
.wa231-card h3 { color: var(--wa231-primary); }
.wa231-card p { color: var(--wa231-text-soft); font-size: 1.4rem; }

.wa231-step-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.wa231-step-list li {
  counter-increment: step;
  position: relative;
  padding: .5rem 0 .5rem 3rem;
  color: var(--wa231-text-soft);
  font-size: 1.4rem;
}
.wa231-step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: .35rem;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wa231-primary), var(--wa231-secondary));
  color: #0E1621;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}

.wa231-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
}
.wa231-feature {
  background: var(--wa231-bg-soft);
  border: 1px solid var(--wa231-border);
  border-radius: 10px;
  padding: 1rem .8rem;
  text-align: center;
}
.wa231-feature i {
  font-size: 2.2rem;
  color: var(--wa231-primary);
  margin-bottom: .35rem;
}
.wa231-feature h3 {
  font-size: 1.3rem;
  margin: .2rem 0;
  color: #fff;
}
.wa231-feature p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--wa231-text-soft);
}

/* ---------------- Promo CTA ---------------- */
.wa231-cta {
  background: linear-gradient(135deg, #FF8C00 0%, #FFAA00 100%);
  border-radius: var(--wa231-radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  color: #0E1621;
  margin: 1.2rem 0;
}
.wa231-cta h2 { color: #0E1621; margin-bottom: .35rem; }
.wa231-cta p { color: #2a1f06; margin-bottom: .8rem; }
.wa231-cta .wa231-btn {
  background: #0E1621;
  color: var(--wa231-primary);
  padding: .8rem 2rem;
}

/* Inline promo text link */
.wa231-promo-link {
  color: var(--wa231-primary);
  font-weight: 700;
  cursor: pointer;
}
.wa231-promo-link:hover { text-decoration: underline; color: var(--wa231-secondary); }

/* ---------------- Testimonials ---------------- */
.wa231-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
}
.wa231-testimonial {
  background: var(--wa231-bg-soft);
  border-left: 3px solid var(--wa231-primary);
  border-radius: 8px;
  padding: 1rem;
}
.wa231-testimonial p { margin: 0 0 .5rem; font-size: 1.35rem; color: var(--wa231-text); }
.wa231-testimonial .wa231-author { font-size: 1.2rem; color: var(--wa231-text-dim); }

/* ---------------- Payment methods ---------------- */
.wa231-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.wa231-pay-item {
  background: var(--wa231-bg-soft);
  border: 1px solid var(--wa231-border);
  border-radius: 8px;
  padding: .7rem .3rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--wa231-text);
}
.wa231-pay-item i { font-size: 1.9rem; color: var(--wa231-primary); display: block; margin-bottom: .25rem; }

/* ---------------- Winners ---------------- */
.wa231-winner-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}
.wa231-winner {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--wa231-bg-soft);
  padding: .55rem .8rem;
  border-radius: 8px;
  font-size: 1.25rem;
}
.wa231-winner i { color: var(--wa231-primary); }
.wa231-winner .wa231-amt { margin-left: auto; color: var(--wa231-primary); font-weight: 700; }

/* ---------------- Footer ---------------- */
.wa231-footer {
  background: var(--wa231-bg-soft);
  border-top: 1px solid var(--wa231-border);
  padding: 2rem 0 1.5rem;
  margin-top: 1rem;
}
.wa231-footer-intro {
  color: var(--wa231-text-soft);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.wa231-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.wa231-footer-promos .wa231-btn {
  font-size: 1.2rem;
  padding: .5rem .9rem;
  background: var(--wa231-bg-card);
  color: var(--wa231-text);
  border: 1px solid var(--wa231-border);
}
.wa231-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin-bottom: 1rem;
}
.wa231-footer-links a {
  color: var(--wa231-text-soft);
  font-size: 1.25rem;
}
.wa231-footer-links a:hover { color: var(--wa231-primary); }
.wa231-copyright {
  color: var(--wa231-text-dim);
  font-size: 1.2rem;
  border-top: 1px solid rgba(255,170,0,.08);
  padding-top: 1rem;
  text-align: center;
}

/* ---------------- Bottom nav ---------------- */
.wa231-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, #16202E 0%, #0E1621 100%);
  border-top: 1px solid var(--wa231-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0,0,0,.4);
}
.wa231-bottom-nav a,
.wa231-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  background: transparent;
  border: none;
  color: var(--wa231-text-dim);
  font-size: 1.05rem;
  font-family: inherit;
  text-decoration: none;
  padding: .35rem .2rem;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  position: relative;
  transition: color .2s ease;
}
.wa231-bottom-nav a:hover,
.wa231-bottom-nav button:hover { text-decoration: none; }
.wa231-bottom-nav .wa231-nav-icon { font-size: 2.1rem; line-height: 1; }
.wa231-bottom-nav .wa231-nav-label { font-size: 1.05rem; }
.wa231-bottom-nav a:hover,
.wa231-bottom-nav button:hover { color: var(--wa231-text); }
.wa231-bottom-nav .wa231-active {
  color: var(--wa231-primary);
}
.wa231-bottom-nav .wa231-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: var(--wa231-primary);
  border-radius: 0 0 3px 3px;
}
.wa231-nav-badge {
  position: absolute;
  top: 6px; right: 22%;
  background: #e23b3b;
  color: #fff;
  font-size: .9rem;
  min-width: 15px; height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ---------------- Back to top ---------------- */
.wa231-to-top {
  position: fixed;
  right: 14px;
  bottom: 74px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wa231-primary), var(--wa231-secondary));
  color: #0E1621;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 999;
  box-shadow: var(--wa231-shadow);
}
.wa231-to-top.wa231-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------------- Desktop: hide bottom nav ---------------- */
@media (min-width: 769px) {
  .wa231-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
  .wa231-container { max-width: 760px; }
  .wa231-header-inner { max-width: 760px; }
  .wa231-game-grid { grid-template-columns: repeat(5, 1fr); }
  .wa231-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .wa231-pay-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 360px) {
  .wa231-game-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.9rem; }
}
