/* ============================================================
 * sunwin sh - sunwinsh.click core stylesheet
 * All custom classes use the "w4543-" prefix.
 * Palette: #F4A460 | #FA8072 | #1B263B | #FFF8DC | #B22222
 * Dark tones = background, light tones = text/highlights.
 * Mobile-first, max-width 430px, rem units (root 62.5%).
 * ============================================================ */

:root {
  --w4543-sand:   #F4A460;
  --w4543-salmon: #FA8072;
  --w4543-ink:    #1B263B;
  --w4543-cream:  #FFF8DC;
  --w4543-fire:   #B22222;
  --w4543-ink-2:  #141d2e;
  --w4543-ink-3:  #0f1626;
  --w4543-gold:   #f6c66e;
  --w4543-radius: 14px;
  --w4543-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: radial-gradient(circle at 20% 0%, #1d2a44 0%, var(--w4543-ink-3) 55%, #0a1020 100%);
  color: var(--w4543-cream);
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--w4543-gold); text-decoration: none; }

.w4543-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.w4543-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.w4543-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(27,38,59,0.96), rgba(20,29,46,0.96));
  border-bottom: 1px solid rgba(244,164,96,0.35);
  backdrop-filter: blur(8px);
}

.w4543-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
}

.w4543-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--w4543-cream);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.3px;
}

.w4543-logo img { width: 30px; height: 30px; border-radius: 8px; }

.w4543-logo .w4543-logo-accent { color: var(--w4543-sand); }

.w4543-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.w4543-hamburger {
  background: transparent;
  border: 1px solid rgba(244,164,96,0.45);
  color: var(--w4543-cream);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.w4543-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  min-height: 36px;
  line-height: 1;
}

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

.w4543-btn-login {
  background: transparent;
  color: var(--w4543-cream);
  border: 1px solid var(--w4543-sand);
}

.w4543-btn-register {
  background: linear-gradient(135deg, var(--w4543-fire), var(--w4543-salmon));
  color: #fff;
  box-shadow: 0 4px 14px rgba(178,34,34,0.45);
}

.w4543-btn-cta {
  background: linear-gradient(135deg, var(--w4543-sand), var(--w4543-fire));
  color: #fff;
  box-shadow: 0 4px 16px rgba(244,164,96,0.45);
}

.w4543-text-link {
  color: var(--w4543-gold);
  font-weight: 700;
  border-bottom: 1px dashed rgba(246,198,110,0.5);
  padding-bottom: 1px;
}

.w4543-text-link:hover { color: var(--w4543-sand); }

/* ===== Mobile menu (slide down) ===== */
.w4543-mobile-menu {
  display: none;
  background: rgba(15,22,38,0.98);
  border-bottom: 1px solid rgba(244,164,96,0.25);
  padding: 10px 14px 14px;
}

.w4543-mobile-menu.w4543-menu-open { display: block; }

.w4543-mobile-menu a {
  display: block;
  padding: 11px 12px;
  color: var(--w4543-cream);
  border-radius: 10px;
  font-size: 1.35rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(244,164,96,0.08);
}

.w4543-mobile-menu a:active { background: rgba(244,164,96,0.12); }

/* ===== Hero / Carousel ===== */
.w4543-main { padding-bottom: 90px; }

.w4543-hero { padding: 14px 0 6px; }

.w4543-carousel {
  position: relative;
  border-radius: var(--w4543-radius);
  overflow: hidden;
  box-shadow: var(--w4543-shadow);
  background: #000;
}

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

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

.w4543-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.w4543-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px 14px;
  background: linear-gradient(to top, rgba(10,16,32,0.92), transparent);
  color: var(--w4543-cream);
}

.w4543-slide-caption h2 {
  margin: 0 0 4px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w4543-gold);
}

.w4543-slide-caption p {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.92;
}

.w4543-dot-row {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.w4543-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,248,220,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
}

.w4543-dot.w4543-dot-active { background: var(--w4543-sand); width: 18px; border-radius: 4px; }

.w4543-hero-cta {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.w4543-hero-cta .w4543-btn { flex: 1; }

/* ===== Section / headings ===== */
.w4543-section { padding: 18px 0 6px; }

.w4543-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.w4543-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w4543-cream);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.w4543-section-title i { color: var(--w4543-sand); font-size: 1.6rem; }

.w4543-section-more {
  font-size: 1.2rem;
  color: var(--w4543-gold);
  font-weight: 600;
}

.w4543-h1 {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 800;
  margin: 6px 0 10px;
  background: linear-gradient(120deg, var(--w4543-gold), var(--w4543-sand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.w4543-lead {
  font-size: 1.3rem;
  color: rgba(255,248,220,0.86);
  margin: 0 0 12px;
}

/* ===== Filter chips ===== */
.w4543-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.w4543-filter-row::-webkit-scrollbar { display: none; }

.w4543-filter-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(244,164,96,0.4);
  background: rgba(27,38,59,0.6);
  color: var(--w4543-cream);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}

.w4543-filter-btn.w4543-filter-active {
  background: linear-gradient(135deg, var(--w4543-sand), var(--w4543-fire));
  border-color: transparent;
  color: #fff;
}

/* ===== Game grid ===== */
.w4543-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.w4543-card {
  background: linear-gradient(160deg, rgba(27,38,59,0.95), rgba(15,22,38,0.95));
  border: 1px solid rgba(244,164,96,0.22);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.w4543-card:active {
  transform: scale(0.97);
  border-color: var(--w4543-sand);
}

.w4543-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0a1020;
}

.w4543-card-name {
  padding: 7px 8px 8px;
  font-size: 1.15rem;
  color: var(--w4543-cream);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
}

.w4543-card-tag {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(178,34,34,0.92);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* ===== Category band ===== */
.w4543-cat-band {
  background: linear-gradient(135deg, rgba(244,164,96,0.12), rgba(178,34,34,0.12));
  border: 1px solid rgba(244,164,96,0.25);
  border-radius: var(--w4543-radius);
  padding: 14px;
  margin-bottom: 12px;
}

.w4543-cat-band h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--w4543-gold);
  font-weight: 800;
}

.w4543-cat-band p {
  margin: 0;
  font-size: 1.2rem;
  color: rgba(255,248,220,0.85);
}

/* ===== Feature / info blocks ===== */
.w4543-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.w4543-info-card {
  background: rgba(27,38,59,0.7);
  border: 1px solid rgba(244,164,96,0.18);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}

.w4543-info-card i {
  font-size: 26px;
  color: var(--w4543-sand);
  margin-bottom: 6px;
}

.w4543-info-card h4 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: var(--w4543-cream);
}

.w4543-info-card p {
  margin: 0;
  font-size: 1.15rem;
  color: rgba(255,248,220,0.78);
}

/* ===== Prose (SEO content) ===== */
.w4543-prose {
  background: rgba(15,22,38,0.6);
  border: 1px solid rgba(244,164,96,0.15);
  border-radius: var(--w4543-radius);
  padding: 16px;
  font-size: 1.3rem;
  color: rgba(255,248,220,0.9);
  line-height: 1.55;
}

.w4543-prose h2 {
  font-size: 1.6rem;
  color: var(--w4543-gold);
  margin: 14px 0 6px;
  font-weight: 800;
}

.w4543-prose h2:first-child { margin-top: 0; }

.w4543-prose h3 {
  font-size: 1.4rem;
  color: var(--w4543-sand);
  margin: 10px 0 4px;
}

.w4543-prose p { margin: 0 0 10px; }

.w4543-prose ul { margin: 0 0 10px; padding-left: 18px; }
.w4543-prose li { margin-bottom: 4px; }

/* ===== Testimonials ===== */
.w4543-testi {
  background: rgba(27,38,59,0.7);
  border-left: 3px solid var(--w4543-sand);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.w4543-testi p { margin: 0 0 6px; font-size: 1.2rem; color: rgba(255,248,220,0.9); }
.w4543-testi .w4543-testi-by { font-size: 1.1rem; color: var(--w4543-gold); font-weight: 700; }

/* ===== Payment row ===== */
.w4543-pay-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.w4543-pay-chip {
  background: rgba(255,248,220,0.08);
  border: 1px solid rgba(244,164,96,0.25);
  color: var(--w4543-cream);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.w4543-pay-chip i { color: var(--w4543-sand); }

/* ===== Footer ===== */
.w4543-footer {
  background: linear-gradient(180deg, var(--w4543-ink-2), var(--w4543-ink-3));
  border-top: 1px solid rgba(244,164,96,0.25);
  padding: 22px 14px 18px;
  color: rgba(255,248,220,0.78);
}

.w4543-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.w4543-footer h5 {
  color: var(--w4543-gold);
  font-size: 1.3rem;
  margin: 0 0 8px;
  font-weight: 800;
}

.w4543-footer ul { list-style: none; margin: 0; padding: 0; }
.w4543-footer li { margin-bottom: 6px; }
.w4543-footer a { color: rgba(255,248,220,0.82); font-size: 1.2rem; }
.w4543-footer a:hover { color: var(--w4543-sand); }

.w4543-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.w4543-footer-btns .w4543-btn { flex: 1 1 40%; font-size: 1.2rem; }

.w4543-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255,248,220,0.6);
  border-top: 1px dashed rgba(244,164,96,0.2);
  padding-top: 10px;
}

/* ===== Bottom nav ===== */
.w4543-bnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(20,29,46,0.98), rgba(10,16,32,0.98));
  border-top: 1px solid rgba(244,164,96,0.35);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 62px;
  padding: 4px 0 6px;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.35);
}

.w4543-bnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255,248,220,0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 56px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.12s ease;
}

.w4543-bnav-btn i,
.w4543-bnav-btn span.material-icons-outlined,
.w4543-bnav-btn ion-icon {
  font-size: 22px;
}

.w4543-bnav-btn ion-icon { font-size: 24px; }

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

.w4543-bnav-btn.w4543-bnav-active { color: var(--w4543-sand); }

.w4543-bnav-btn.w4543-bnav-promo {
  color: var(--w4543-gold);
}

.w4543-bnav-btn.w4543-bnav-promo i { color: var(--w4543-fire); }

/* ===== Desktop: hide bottom nav, widen container ===== */
@media (min-width: 769px) {
  .w4543-bnav { display: none; }
  .w4543-container,
  .w4543-wrapper,
  .w4543-header-inner { max-width: 960px; }
  .w4543-grid { grid-template-columns: repeat(6, 1fr); }
  .w4543-info-grid { grid-template-columns: repeat(4, 1fr); }
  .w4543-main { padding-bottom: 30px; }
  .w4543-slide img { height: 360px; }
}

@media (max-width: 768px) {
  .w4543-main { padding-bottom: 88px; }
}

/* Desktop header right-side quick links */
.w4543-desktop-links { display: none; }
@media (min-width: 769px) {
  .w4543-desktop-links {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-right: 10px;
  }
  .w4543-desktop-links a {
    color: rgba(255,248,220,0.85);
    font-size: 1.25rem;
    font-weight: 600;
  }
}

/* Accessibility focus */
:focus-visible {
  outline: 2px solid var(--w4543-gold);
  outline-offset: 2px;
}
