/**
 * phdream apk - layout-302a.css
 * Mobile-first shared stylesheet. All classes use the w302a- prefix.
 * Palette: #0A0A0A | #32CD32 | #A9A9A9 | #2E8B57
 * Root font 62.5% => 1rem = 10px.
 */

:root {
  --w302a-bg: #0a0a0a;
  --w302a-bg-soft: #141414;
  --w302a-bg-card: #1c1c1c;
  --w302a-primary: #32cd32;
  --w302a-secondary: #2e8b57;
  --w302a-text: #f3f6f3;
  --w302a-muted: #a9a9a9;
  --w302a-border: rgba(50, 205, 50, 0.18);
  --w302a-radius: 1.2rem;
  --w302a-shadow: 0 0.4rem 1.4rem rgba(0, 0, 0, 0.45);
  --w302a-maxw: 430px;
}

* {
  box-sizing: border-box;
}

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

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

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

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

.w302a-wrapper {
  width: 100%;
  max-width: var(--w302a-maxw);
  margin: 0 auto;
  position: relative;
}

.w302a-container {
  padding: 1.6rem 1.4rem;
}

/* ===================== HEADER ===================== */
.w302a-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
  border-bottom: 0.2rem solid var(--w302a-primary);
  box-shadow: var(--w302a-shadow);
}

.w302a-header-inner {
  max-width: var(--w302a-maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  gap: 0.8rem;
}

.w302a-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.w302a-brand img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.w302a-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--w302a-text);
  white-space: nowrap;
}

.w302a-brand-name span {
  color: var(--w302a-primary);
}

.w302a-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w302a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 0.9rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  border: 0.15rem solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

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

.w302a-btn-login {
  background: transparent;
  color: var(--w302a-primary);
  border-color: var(--w302a-primary);
}

.w302a-btn-register {
  background: linear-gradient(135deg, var(--w302a-primary), var(--w302a-secondary));
  color: #07210c;
}

.w302a-menu-btn {
  background: transparent;
  border: 0;
  color: var(--w302a-text);
  font-size: 1.9rem;
  width: 3.6rem;
  height: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  cursor: pointer;
}

.w302a-menu-btn:hover {
  background: rgba(50, 205, 50, 0.1);
}

/* ===================== MOBILE NAV ===================== */
.w302a-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 80%;
  max-width: 30rem;
  background: #111;
  border-left: 0.2rem solid var(--w302a-primary);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  z-index: 9999;
  padding: 6rem 1.4rem 2rem;
  overflow-y: auto;
  visibility: hidden;
}

.w302a-mobile-nav.w302a-menu-open {
  transform: translateX(0);
  visibility: visible;
}

.w302a-mobile-nav .w302a-nav-title {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--w302a-muted);
  margin: 1.2rem 0 0.6rem;
}

.w302a-mobile-nav a {
  display: block;
  padding: 1rem 0.8rem;
  color: var(--w302a-text);
  font-size: 1.4rem;
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.06);
}

.w302a-mobile-nav a:hover,
.w302a-mobile-nav a:focus {
  color: var(--w302a-primary);
  background: rgba(50, 205, 50, 0.08);
}

.w302a-nav-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: 0;
  color: var(--w302a-text);
  font-size: 2.2rem;
  cursor: pointer;
}

.w302a-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.w302a-overlay.w302a-menu-open {
  opacity: 1;
  visibility: visible;
}

/* ===================== MAIN ===================== */
.w302a-main {
  padding-top: 6rem;
}

@media (max-width: 768px) {
  .w302a-main {
    padding-bottom: 8rem; /* clearance for fixed bottom nav */
  }
}

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

.w302a-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.w302a-h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w302a-text);
  margin: 0;
}

.w302a-h2 span {
  color: var(--w302a-primary);
}

.w302a-h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--w302a-primary);
  margin: 1.4rem 0 0.6rem;
}

.w302a-lead {
  color: var(--w302a-muted);
  font-size: 1.4rem;
  line-height: 1.5rem;
}

.w302a-h1 {
  font-size: 2rem;
  line-height: 1.5rem;
  font-weight: 800;
  color: var(--w302a-text);
  margin: 1.4rem 0 0.8rem;
}

.w302a-h1 span {
  color: var(--w302a-primary);
}

/* ===================== CAROUSEL ===================== */
.w302a-carousel {
  position: relative;
  border-radius: var(--w302a-radius);
  overflow: hidden;
  box-shadow: var(--w302a-shadow);
}

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

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

.w302a-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.w302a-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}

.w302a-slide-cap strong {
  font-size: 1.5rem;
  color: var(--w302a-primary);
  display: block;
}

.w302a-slide-cap span {
  font-size: 1.25rem;
  color: var(--w302a-text);
}

.w302a-dots {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.w302a-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  cursor: pointer;
}

.w302a-dot.w302a-dot-active {
  background: var(--w302a-primary);
}

/* ===================== FILTER ===================== */
.w302a-filter {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  scrollbar-width: none;
}

.w302a-filter::-webkit-scrollbar {
  display: none;
}

.w302a-filter-btn {
  flex: 0 0 auto;
  padding: 0.6rem 1.1rem;
  border-radius: 1rem;
  background: var(--w302a-bg-card);
  color: var(--w302a-muted);
  font-size: 1.25rem;
  border: 0.1rem solid transparent;
  cursor: pointer;
}

.w302a-filter-btn.w302a-filter-active {
  background: var(--w302a-primary);
  color: #07210c;
  font-weight: 700;
}

/* ===================== GAME GRID ===================== */
.w302a-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.w302a-card {
  background: var(--w302a-bg-card);
  border-radius: 1rem;
  overflow: hidden;
  border: 0.1rem solid var(--w302a-border);
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease;
}

.w302a-card:hover,
.w302a-card:active {
  transform: translateY(-0.3rem);
  border-color: var(--w302a-primary);
}

.w302a-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.w302a-card-name {
  font-size: 1.15rem;
  color: var(--w302a-text);
  padding: 0.4rem 0.3rem 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== CTA / PROMO ===================== */
.w302a-cta {
  display: block;
  text-align: center;
  padding: 1.3rem;
  border-radius: 1rem;
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--w302a-primary), var(--w302a-secondary));
  color: #07210c;
  margin: 1.4rem 0;
  box-shadow: 0 0.4rem 1rem rgba(50, 205, 50, 0.25);
}

.w302a-cta:hover {
  opacity: 0.95;
}

.w302a-promo-link {
  color: var(--w302a-primary);
  font-weight: 700;
  border-bottom: 0.1rem dashed var(--w302a-primary);
}

/* ===================== PANEL / LIST ===================== */
.w302a-panel {
  background: var(--w302a-bg-soft);
  border: 0.1rem solid var(--w302a-border);
  border-radius: var(--w302a-radius);
  padding: 1.4rem;
}

.w302a-panel p {
  margin: 0 0 0.8rem;
  color: var(--w302a-text);
}

.w302a-list {
  margin: 0.6rem 0 0;
  padding-left: 1.4rem;
  color: var(--w302a-text);
}

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

.w302a-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0.6rem 0;
}

.w302a-steps li {
  position: relative;
  padding: 0.6rem 0 0.6rem 3.4rem;
  margin-bottom: 0.6rem;
  background: var(--w302a-bg-card);
  border-radius: 0.8rem;
}

.w302a-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.6rem;
  top: 0.55rem;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--w302a-primary);
  color: #07210c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

/* ===================== FAQ ===================== */
.w302a-faq-item {
  background: var(--w302a-bg-card);
  border-radius: 0.9rem;
  margin-bottom: 0.7rem;
  overflow: hidden;
  border: 0.1rem solid transparent;
}

.w302a-faq-q {
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: var(--w302a-text);
  cursor: pointer;
  list-style: none;
}

.w302a-faq-q::-webkit-details-marker {
  display: none;
}

.w302a-faq-a {
  padding: 0 1rem 1rem;
  color: var(--w302a-muted);
}

/* ===================== TESTIMONIAL / FEATURE ===================== */
.w302a-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.w302a-mini {
  background: var(--w302a-bg-card);
  border-radius: 1rem;
  padding: 1rem;
  border: 0.1rem solid var(--w302a-border);
}

.w302a-mini .w302a-ic {
  font-size: 1.8rem;
  color: var(--w302a-primary);
  margin-bottom: 0.4rem;
}

.w302a-mini strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: var(--w302a-text);
}

.w302a-mini span {
  color: var(--w302a-muted);
  font-size: 1.2rem;
}

.w302a-stars {
  color: #ffce3a;
  letter-spacing: 0.1rem;
}

/* ===================== FOOTER ===================== */
.w302a-footer {
  background: #060606;
  border-top: 0.2rem solid var(--w302a-primary);
  padding: 2rem 1.4rem 1.4rem;
  margin-top: 2.5rem;
}

.w302a-footer-brand {
  color: var(--w302a-muted);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.5rem;
}

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

.w302a-footer-promos .w302a-btn {
  flex: 1 1 calc(50% - 0.6rem);
  min-height: 3.4rem;
  font-size: 1.25rem;
}

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

.w302a-footer-links a {
  color: var(--w302a-muted);
  font-size: 1.2rem;
}

.w302a-footer-links a:hover {
  color: var(--w302a-primary);
}

.w302a-copy {
  border-top: 0.1rem solid rgba(255, 255, 255, 0.06);
  margin-top: 1rem;
  padding-top: 1rem;
  color: var(--w302a-muted);
  font-size: 1.15rem;
  text-align: center;
}

/* ===================== BOTTOM NAV ===================== */
.w302a-bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(180deg, #0d0d0d, #050505);
  border-top: 0.15rem solid var(--w302a-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -0.4rem 1rem rgba(0, 0, 0, 0.45);
}

.w302a-bnav-btn {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: 0;
  color: var(--w302a-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, transform 0.15s ease;
}

.w302a-bnav-btn .w302a-ic {
  font-size: 2.2rem;
  line-height: 1;
}

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

.w302a-bnav-btn:hover {
  color: var(--w302a-text);
}

.w302a-bnav-btn.w302a-nav-active,
.w302a-bnav-btn[data-w302a-promo] {
  color: var(--w302a-primary);
}

.w302a-bnav-btn[data-w302a-promo] .w302a-ic {
  filter: drop-shadow(0 0 0.4rem rgba(50, 205, 50, 0.6));
}

.w302a-bnav-btn span {
  font-size: 1.05rem;
}

.w302a-badge {
  position: absolute;
  top: 0.8rem;
  right: calc(50% - 2.2rem);
  background: #ff4d4d;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== REVEAL ===================== */
.w302a-reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.w302a-reveal.w302a-revealed {
  opacity: 1;
  transform: none;
}

/* ===================== DESKTOP ===================== */
@media (min-width: 769px) {
  .w302a-bnav {
    display: none;
  }
}

/* Accessibility: focus ring */
a:focus-visible,
button:focus-visible,
.w302a-card:focus-visible {
  outline: 0.2rem solid var(--w302a-primary);
  outline-offset: 0.2rem;
}
