/* ============================================================
   superking.cyou - Core Stylesheet
   All custom classes use the v279- prefix.
   Palette: #FFEBCD | #FFB74D | #333333 | #FF9800 | #FF8C00
   Mobile-first, max-width 430px container.
   ============================================================ */

:root {
  --v279-bg: #333333;
  --v279-bg-2: #3a3a3a;
  --v279-bg-3: #1f1f1f;
  --v279-text: #FFEBCD;
  --v279-text-soft: #d9c9a3;
  --v279-primary: #FF9800;
  --v279-secondary: #FFB74D;
  --v279-accent: #FF8C00;
  --v279-card: #2a2a2a;
  --v279-card-2: #242424;
  --v279-border: rgba(255, 183, 77, 0.22);
  --v279-radius: 12px;
  --v279-radius-lg: 18px;
  --v279-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --v279-header-h: 56px;
  --v279-bottomnav-h: 60px;
}

/* base reset */
* { 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(--v279-bg);
  color: var(--v279-text);
  font-size: 1.5rem;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--v279-secondary); text-decoration: none; }
a:hover, a:focus { color: var(--v279-primary); }
ul { list-style: none; }

/* layout container */
.v279-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}
.v279-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--v279-bg);
  min-height: 100vh;
  position: relative;
}

/* main content - bottom padding for mobile bottom nav */
main.v279-main {
  padding-top: calc(var(--v279-header-h) + 6px);
  padding-bottom: calc(var(--v279-bottomnav-h) + 20px);
}

/* ============ Header ============ */
.v279-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v279-header-h);
  background: linear-gradient(90deg, #1f1f1f, #333333 60%, #2a2a2a);
  border-bottom: 2px solid var(--v279-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.v279-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.v279-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--v279-text);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.4px;
  flex: 1 1 auto;
  min-width: 0;
}
.v279-logo img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
}
.v279-logo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(90deg, var(--v279-secondary), var(--v279-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v279-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.v279-menu-btn {
  background: transparent;
  border: 0;
  color: var(--v279-text);
  font-size: 2.2rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
}
.v279-menu-btn:hover { color: var(--v279-primary); }

.v279-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 36px;
  text-align: center;
}
.v279-btn-primary {
  background: linear-gradient(90deg, var(--v279-accent), var(--v279-primary));
  color: #1f1f1f;
  box-shadow: 0 3px 10px rgba(255, 152, 0, 0.35);
}
.v279-btn-primary:hover { transform: translateY(-1px); color: #1f1f1f; }
.v279-btn-ghost {
  background: transparent;
  color: var(--v279-text);
  border: 1.5px solid var(--v279-secondary);
}
.v279-btn-ghost:hover { background: rgba(255, 183, 77, 0.12); color: var(--v279-text); }
.v279-btn-block {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.5rem;
}

/* ============ Mobile slide menu ============ */
.v279-menu-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.v279-menu-mask.v279-mask-show {
  opacity: 1;
  visibility: visible;
}
.v279-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--v279-bg-3);
  z-index: 9999;
  padding: 18px 16px;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 2px solid var(--v279-primary);
}
.v279-mobile-menu.v279-menu-open { right: 0; }
.v279-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--v279-border);
}
.v279-menu-title {
  color: var(--v279-secondary);
  font-weight: 800;
  font-size: 1.7rem;
}
.v279-menu-close {
  background: transparent;
  border: 0;
  color: var(--v279-text);
  font-size: 2.2rem;
  cursor: pointer;
}
.v279-mobile-menu ul li {
  margin-bottom: 6px;
}
.v279-mobile-menu ul li a,
.v279-mobile-menu ul li button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  background: var(--v279-card);
  color: var(--v279-text);
  border: 1px solid var(--v279-border);
  border-radius: 10px;
  font-size: 1.45rem;
  text-align: left;
  cursor: pointer;
}
.v279-mobile-menu ul li a:hover,
.v279-mobile-menu ul li button:hover {
  background: var(--v279-card-2);
  color: var(--v279-secondary);
}
.v279-mobile-menu ul li i { color: var(--v279-primary); width: 22px; text-align: center; }

/* ============ Hero Carousel ============ */
.v279-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--v279-radius-lg);
  overflow: hidden;
  margin: 10px 0 14px;
  box-shadow: var(--v279-shadow);
}
.v279-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}
.v279-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.v279-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v279-slide.v279-slide-active { opacity: 1; }
.v279-slide-overlay {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--v279-text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 700;
}
.v279-dots {
  position: absolute;
  right: 10px; bottom: 10px;
  display: flex;
  gap: 6px;
}
.v279-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 235, 205, 0.55);
  cursor: pointer;
}
.v279-dot.v279-dot-active { background: var(--v279-primary); }

/* ============ Section headings ============ */
.v279-section {
  margin: 18px 0;
  padding: 14px 12px;
  background: var(--v279-card);
  border-radius: var(--v279-radius);
  border: 1px solid var(--v279-border);
}
.v279-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--v279-secondary);
  margin-bottom: 10px;
}
.v279-section-title i { color: var(--v279-primary); }
.v279-section-title small {
  font-size: 1.2rem;
  color: var(--v279-text-soft);
  font-weight: 500;
  margin-left: auto;
}
.v279-section p {
  color: var(--v279-text-soft);
  font-size: 1.4rem;
  line-height: 1.55;
  margin-bottom: 8px;
}
.v279-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--v279-text);
  margin: 12px 0 6px;
  line-height: 1.25;
}
.v279-lead {
  color: var(--v279-text-soft);
  font-size: 1.4rem;
  line-height: 1.55;
  margin-bottom: 10px;
}

/* ============ Category tabs / labels ============ */
.v279-cat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 2px 10px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--v279-text);
}
.v279-cat-label .v279-cat-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--v279-accent), var(--v279-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f1f1f;
  font-size: 1.6rem;
}
.v279-cat-label small {
  margin-left: auto;
  font-size: 1.15rem;
  color: var(--v279-text-soft);
  font-weight: 500;
}

/* ============ Game grid ============ */
.v279-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.v279-game-card {
  background: var(--v279-card-2);
  border: 1px solid var(--v279-border);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
.v279-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--v279-primary);
  box-shadow: 0 6px 14px rgba(255, 152, 0, 0.22);
}
.v279-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #111;
}
.v279-game-name {
  font-size: 1.2rem;
  color: var(--v279-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ============ Features / list cards ============ */
.v279-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.v279-feature {
  background: var(--v279-card-2);
  border: 1px solid var(--v279-border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}
.v279-feature i {
  font-size: 2.4rem;
  color: var(--v279-primary);
  margin-bottom: 6px;
}
.v279-feature h3 {
  font-size: 1.45rem;
  color: var(--v279-text);
  margin-bottom: 4px;
}
.v279-feature p {
  font-size: 1.25rem;
  color: var(--v279-text-soft);
  line-height: 1.45;
}

/* ============ Promo / CTA banner ============ */
.v279-promo-banner {
  background: linear-gradient(135deg, var(--v279-accent), var(--v279-secondary));
  border-radius: var(--v279-radius);
  padding: 14px 12px;
  color: #1f1f1f;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--v279-shadow);
}
.v279-promo-banner h3 {
  font-size: 1.8rem;
  font-weight: 800;
}
.v279-promo-banner p {
  font-size: 1.35rem;
  color: #2a2a2a;
}
.v279-promo-banner .v279-btn {
  align-self: flex-start;
  background: #1f1f1f;
  color: var(--v279-secondary);
}

/* ============ RTP / data table ============ */
.v279-rtp-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.v279-rtp-item {
  background: var(--v279-card-2);
  border: 1px solid var(--v279-border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
}
.v279-rtp-item .v279-rtp-name { color: var(--v279-text); font-weight: 600; }
.v279-rtp-item .v279-rtp-value { color: var(--v279-primary); font-weight: 800; }

/* ============ Winners showcase ============ */
.v279-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.v279-winner {
  background: var(--v279-card-2);
  border: 1px solid var(--v279-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.25rem;
}
.v279-winner .v279-winner-name { color: var(--v279-secondary); font-weight: 700; }
.v279-winner .v279-winner-amount { color: var(--v279-primary); font-weight: 800; }
.v279-winner small { color: var(--v279-text-soft); }

/* ============ Testimonials ============ */
.v279-testimonial {
  background: var(--v279-card-2);
  border: 1px solid var(--v279-border);
  border-left: 4px solid var(--v279-primary);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.v279-testimonial .v279-testi-text {
  color: var(--v279-text);
  font-size: 1.35rem;
  margin-bottom: 6px;
  line-height: 1.5;
}
.v279-testimonial .v279-testi-author {
  color: var(--v279-secondary);
  font-size: 1.2rem;
  font-weight: 700;
}

/* ============ Payments ============ */
.v279-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.v279-pay-item {
  background: var(--v279-card-2);
  border: 1px solid var(--v279-border);
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--v279-text);
}
.v279-pay-item i {
  font-size: 2rem;
  color: var(--v279-secondary);
  display: block;
  margin-bottom: 4px;
}

/* ============ App download CTA ============ */
.v279-app-cta {
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  border: 1px solid var(--v279-primary);
  border-radius: var(--v279-radius);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v279-app-cta h3 { color: var(--v279-secondary); font-size: 1.8rem; }
.v279-app-cta p { color: var(--v279-text-soft); font-size: 1.35rem; }
.v279-app-cta .v279-app-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============ FAQ ============ */
.v279-faq-item {
  background: var(--v279-card-2);
  border: 1px solid var(--v279-border);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.v279-faq-item details {
  padding: 10px 12px;
}
.v279-faq-item summary {
  font-size: 1.4rem;
  color: var(--v279-text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.v279-faq-item summary::-webkit-details-marker { display: none; }
.v279-faq-item summary::after {
  content: "+";
  color: var(--v279-primary);
  font-size: 1.8rem;
  font-weight: 700;
}
.v279-faq-item details[open] summary::after { content: "-"; }
.v279-faq-item p {
  margin-top: 8px;
  color: var(--v279-text-soft);
  font-size: 1.3rem;
  line-height: 1.5;
}

/* ============ Footer ============ */
.v279-footer {
  background: var(--v279-bg-3);
  border-top: 2px solid var(--v279-primary);
  padding: 18px 12px 20px;
  margin-top: 18px;
}
.v279-footer-brand {
  color: var(--v279-text);
  font-size: 1.35rem;
  line-height: 1.55;
  margin-bottom: 12px;
}
.v279-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.v279-footer-promos .v279-btn {
  font-size: 1.2rem;
  padding: 6px 10px;
}
.v279-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}
.v279-footer-links a {
  color: var(--v279-text-soft);
  font-size: 1.25rem;
}
.v279-footer-links a:hover { color: var(--v279-secondary); }
.v279-footer-copy {
  color: var(--v279-text-soft);
  font-size: 1.15rem;
  border-top: 1px solid var(--v279-border);
  padding-top: 10px;
}

/* ============ Mobile bottom nav ============ */
.v279-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v279-bottomnav-h);
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-top: 2px solid var(--v279-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 4px 0;
}
.v279-bottomnav-btn {
  flex: 1 1 0;
  min-width: 60px;
  min-height: 56px;
  background: transparent;
  border: 0;
  color: var(--v279-text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
  border-radius: 10px;
  padding: 2px;
}
.v279-bottomnav-btn i,
.v279-bottomnav-btn .material-icons-outlined,
.v279-bottomnav-btn .ion-icon {
  font-size: 22px;
}
.v279-bottomnav-btn span {
  font-size: 1.05rem;
  font-weight: 600;
}
.v279-bottomnav-btn:hover,
.v279-bottomnav-btn:focus {
  color: var(--v279-secondary);
  transform: translateY(-2px);
}
.v279-bottomnav-btn.v279-bottomnav-btn-active {
  color: var(--v279-primary);
}
.v279-bottomnav-btn.v279-bottomnav-btn-active::after {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--v279-primary);
  margin-top: 2px;
}

/* desktop: hide bottom nav */
@media (min-width: 769px) {
  .v279-bottomnav { display: none; }
}
/* desktop: widen the wrapper, add side padding */
@media (min-width: 769px) {
  .v279-wrapper, .v279-container, .v279-header-inner { max-width: 720px; }
  .v279-game-grid { grid-template-columns: repeat(5, 1fr); }
  .v279-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .v279-rtp-list, .v279-winners { grid-template-columns: repeat(3, 1fr); }
  main.v279-main { padding-bottom: 30px; }
}
/* tablet tuning */
@media (min-width: 481px) and (max-width: 768px) {
  .v279-game-grid { grid-template-columns: repeat(4, 1fr); }
}

/* back-to-top floating button */
.v279-totop {
  position: fixed;
  right: 14px;
  bottom: calc(var(--v279-bottomnav-h) + 14px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--v279-primary);
  color: #1f1f1f;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--v279-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.v279-totop:hover { background: var(--v279-secondary); }
