/* ============================================================
 * king gaming - layout.css
 * Mobile-first (max-width: 430px) container.
 * All custom classes use the w2d07- prefix.
 * Palette: #F08080 (coral) | #FFB3BA (rose) | #FF8A80 (salmon)
 *          #CED4DA (mist) | #2D2D2D (charcoal bg)
 * ============================================================ */

:root {
  --w2d07-primary: #F08080;
  --w2d07-secondary: #FFB3BA;
  --w2d07-accent: #FF8A80;
  --w2d07-mist: #CED4DA;
  --w2d07-bg: #2D2D2D;
  --w2d07-bg-alt: #1f1f1f;
  --w2d07-bg-card: #3a3a3a;
  --w2d07-text: #ffffff;
  --w2d07-text-soft: #d8d8d8;
  --w2d07-text-muted: #9aa0a6;
  --w2d07-border: rgba(240, 128, 128, 0.25);
  --w2d07-gold: #ffd479;
  --w2d07-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --w2d07-radius: 14px;
  --w2d07-radius-sm: 8px;
}

/* ---------- Base reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: var(--w2d07-bg);
  color: var(--w2d07-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { font-size: 62.5%; }   /* 1rem = 10px */
body { font-size: 1.5rem; line-height: 1.6; }
a { color: var(--w2d07-secondary); text-decoration: none; }
a:hover { color: var(--w2d07-primary); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

/* ---------- Mobile-first container (hard limit 430px) ---------- */
.w2d07-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--w2d07-bg);
  min-height: 100vh;
}
.w2d07-container {
  width: 100%;
  padding: 0 14px;
}
main.w2d07-main { padding-bottom: 88px; }   /* clear bottom nav */

/* ---------- Header ---------- */
.w2d07-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(45,45,45,0.98), rgba(45,45,45,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--w2d07-border);
}
.w2d07-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}
.w2d07-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.w2d07-brand img { width: 28px; height: 28px; border-radius: 6px; }
.w2d07-brand .w2d07-brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--w2d07-primary);
  letter-spacing: 0.3px;
  text-transform: lowercase;
  white-space: nowrap;
}
.w2d07-brand .w2d07-brand-name span { color: var(--w2d07-secondary); }
.w2d07-header-actions { display: flex; align-items: center; gap: 6px; }

/* ---------- Buttons ---------- */
.w2d07-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--w2d07-radius-sm);
  padding: 9px 14px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  min-height: 40px;
  font-family: inherit;
  text-decoration: none;
}
.w2d07-btn:active { transform: scale(0.96); }
.w2d07-btn-primary {
  background: linear-gradient(135deg, var(--w2d07-primary), var(--w2d07-accent));
  color: #2a0f0f;
  box-shadow: 0 4px 14px rgba(240,128,128,0.35);
}
.w2d07-btn-primary:hover { color: #2a0f0f; filter: brightness(1.05); }
.w2d07-btn-outline {
  background: transparent;
  color: var(--w2d07-text);
  border: 1.5px solid var(--w2d07-primary);
}
.w2d07-btn-block { width: 100%; }
.w2d07-btn-lg { padding: 13px 18px; font-size: 1.5rem; min-height: 48px; }

.w2d07-menu-btn {
  background: transparent;
  border: none;
  color: var(--w2d07-text);
  font-size: 1.8rem;
  padding: 6px 8px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
}
.w2d07-menu-btn:active { background: rgba(240,128,128,0.15); }

/* ---------- Mobile slide-down menu ---------- */
.w2d07-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--w2d07-bg-alt);
  z-index: 9999;
  padding: 22px 16px;
  transform: translateX(0);
  transition: right .28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--w2d07-border);
  box-shadow: -8px 0 28px rgba(0,0,0,0.45);
}
.w2d07-mobile-menu.w2d07-menu-open { right: 0; }
.w2d07-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9998;
}
.w2d07-mobile-menu.w2d07-menu-open ~ .w2d07-menu-overlay { opacity: 1; pointer-events: auto; }
.w2d07-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--w2d07-border);
}
.w2d07-menu-head .w2d07-brand-name { font-size: 1.7rem; color: var(--w2d07-primary); }
.w2d07-menu-close {
  background: transparent;
  border: none;
  color: var(--w2d07-text);
  font-size: 2rem;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
}
.w2d07-mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.w2d07-mobile-menu ul a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 8px;
  color: var(--w2d07-text-soft);
  font-size: 1.45rem;
  font-weight: 500;
}
.w2d07-mobile-menu ul a:hover,
.w2d07-mobile-menu ul a:focus {
  background: rgba(240,128,128,0.12);
  color: var(--w2d07-primary);
}
.w2d07-mobile-menu ul a i { width: 22px; text-align: center; color: var(--w2d07-primary); }
.w2d07-menu-cta { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }

body.w2d07-no-scroll { overflow: hidden; }

/* ---------- Hero / Carousel ---------- */
.w2d07-hero {
  position: relative;
  border-radius: 0 0 var(--w2d07-radius) var(--w2d07-radius);
  overflow: hidden;
  margin: 0 0 18px;
}
.w2d07-carousel { position: relative; }
.w2d07-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.w2d07-slide.w2d07-active { display: block; }
.w2d07-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.w2d07-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45,45,45,0.1) 0%, rgba(45,45,45,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.w2d07-slide-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.w2d07-slide-sub { font-size: 1.25rem; color: var(--w2d07-secondary); margin-bottom: 8px; }
.w2d07-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}
.w2d07-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
}
.w2d07-dot.w2d07-active { background: var(--w2d07-primary); width: 22px; border-radius: 4px; }

/* ---------- Section headings ---------- */
.w2d07-section { margin: 22px 0; }
.w2d07-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.55rem;
  color: var(--w2d07-text);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid var(--w2d07-primary);
}
.w2d07-section-title i { color: var(--w2d07-primary); }
.w2d07-section-title small {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--w2d07-text-muted);
  font-weight: 500;
}
.w2d07-lead { color: var(--w2d07-text-soft); font-size: 1.4rem; }

/* ---------- Game grid ---------- */
.w2d07-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.w2d07-grid-4 { grid-template-columns: repeat(4, 1fr); }
.w2d07-game-card {
  background: var(--w2d07-bg-card);
  border-radius: var(--w2d07-radius-sm);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  display: block;
}
.w2d07-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--w2d07-shadow);
  border-color: var(--w2d07-border);
  color: inherit;
}
.w2d07-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #222;
}
.w2d07-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--w2d07-text-soft);
  padding: 5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards ---------- */
.w2d07-card {
  background: var(--w2d07-bg-card);
  border-radius: var(--w2d07-radius);
  padding: 16px;
  box-shadow: var(--w2d07-shadow);
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.04);
}
.w2d07-card h3 {
  font-size: 1.5rem;
  color: var(--w2d07-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.w2d07-card p { color: var(--w2d07-text-soft); font-size: 1.35rem; }
.w2d07-card a.inline-link { color: var(--w2d07-primary); font-weight: 700; }

/* ---------- Feature list / steps ---------- */
.w2d07-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.w2d07-feature {
  background: var(--w2d07-bg-card);
  border-radius: var(--w2d07-radius-sm);
  padding: 12px;
  text-align: center;
}
.w2d07-feature i { font-size: 2.4rem; color: var(--w2d07-primary); margin-bottom: 6px; display: block; }
.w2d07-feature strong { display: block; font-size: 1.3rem; color: var(--w2d07-text); margin-bottom: 3px; }
.w2d07-feature span { font-size: 1.15rem; color: var(--w2d07-text-muted); }

.w2d07-steps { counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.w2d07-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--w2d07-bg-card);
  padding: 12px;
  border-radius: var(--w2d07-radius-sm);
}
.w2d07-step-num {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--w2d07-primary);
  color: #2a0f0f;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.w2d07-step-text strong { color: var(--w2d07-text); display: block; margin-bottom: 2px; font-size: 1.35rem; }
.w2d07-step-text span { color: var(--w2d07-text-muted); font-size: 1.2rem; }

/* ---------- RTP table ---------- */
.w2d07-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.w2d07-rtp-table th, .w2d07-rtp-table td {
  padding: 9px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.w2d07-rtp-table th { color: var(--w2d07-primary); font-size: 1.2rem; }
.w2d07-rtp-table td.w2d07-tp { color: var(--w2d07-gold); font-weight: 700; }
.w2d07-bar {
  height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden;
}
.w2d07-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--w2d07-primary), var(--w2d07-secondary)); }

/* ---------- FAQ ---------- */
.w2d07-faq-item {
  background: var(--w2d07-bg-card);
  border-radius: var(--w2d07-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}
.w2d07-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 13px 14px;
  color: var(--w2d07-text);
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.w2d07-faq-q i { color: var(--w2d07-primary); transition: transform .2s ease; }
.w2d07-faq-item.w2d07-open .w2d07-faq-q i { transform: rotate(45deg); }
.w2d07-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 14px;
  color: var(--w2d07-text-soft);
  font-size: 1.25rem;
}
.w2d07-faq-item.w2d07-open .w2d07-faq-a { max-height: 320px; padding: 0 14px 14px; }

/* ---------- Testimonials ---------- */
.w2d07-testi { display: flex; flex-direction: column; gap: 10px; }
.w2d07-testi-item {
  background: var(--w2d07-bg-card);
  border-radius: var(--w2d07-radius-sm);
  padding: 12px;
  border-left: 3px solid var(--w2d07-primary);
}
.w2d07-testi-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.w2d07-testi-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--w2d07-primary), var(--w2d07-secondary));
  color: #2a0f0f; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.w2d07-testi-name { font-weight: 700; color: var(--w2d07-text); font-size: 1.3rem; }
.w2d07-testi-stars { color: var(--w2d07-gold); font-size: 1.1rem; margin-left: auto; }
.w2d07-testi-item p { font-size: 1.2rem; color: var(--w2d07-text-soft); }

/* ---------- Winners strip ---------- */
.w2d07-winners {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.w2d07-winner {
  flex: 0 0 150px;
  background: linear-gradient(135deg, rgba(240,128,128,0.18), rgba(255,179,186,0.08));
  border: 1px solid var(--w2d07-border);
  border-radius: var(--w2d07-radius-sm);
  padding: 10px;
}
.w2d07-winner .w2d07-w-name { font-size: 1.2rem; color: var(--w2d07-text); font-weight: 700; }
.w2d07-winner .w2d07-w-game { font-size: 1.05rem; color: var(--w2d07-text-muted); }
.w2d07-winner .w2d07-w-amount { font-size: 1.45rem; color: var(--w2d07-gold); font-weight: 800; margin-top: 4px; }

/* ---------- Payment icons ---------- */
.w2d07-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.w2d07-pay {
  background: #fff;
  color: #2D2D2D;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- CTA banner ---------- */
.w2d07-cta {
  background: linear-gradient(135deg, var(--w2d07-primary), var(--w2d07-accent));
  color: #2a0f0f;
  border-radius: var(--w2d07-radius);
  padding: 18px;
  text-align: center;
  margin: 18px 0;
}
.w2d07-cta h3 { font-size: 1.7rem; color: #2a0f0f; margin-bottom: 6px; }
.w2d07-cta p { font-size: 1.3rem; color: rgba(42,15,15,0.85); margin-bottom: 12px; }
.w2d07-cta .w2d07-btn { background: #2D2D2D; color: #fff; }
.w2d07-cta .w2d07-btn:hover { color: var(--w2d07-secondary); }

/* ---------- Inline promo text links ---------- */
.w2d07-promo-text {
  color: var(--w2d07-primary);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.w2d07-footer {
  background: var(--w2d07-bg-alt);
  padding: 22px 14px 14px;
  border-top: 1px solid var(--w2d07-border);
  margin-top: 20px;
}
.w2d07-footer-brand {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.w2d07-footer-brand img { width: 26px; height: 26px; border-radius: 6px; }
.w2d07-footer-brand strong { color: var(--w2d07-primary); font-size: 1.5rem; }
.w2d07-footer p { color: var(--w2d07-text-muted); font-size: 1.2rem; margin-bottom: 10px; }
.w2d07-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.w2d07-footer-links a {
  color: var(--w2d07-text-soft);
  font-size: 1.18rem;
  padding: 4px 0;
}
.w2d07-footer-links a:hover { color: var(--w2d07-primary); }
.w2d07-footer-promos { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.w2d07-footer-promos .w2d07-btn { font-size: 1.15rem; padding: 7px 10px; min-height: 36px; }
.w2d07-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--w2d07-text-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
  margin-top: 8px;
}

/* ---------- Mobile bottom navigation (fixed) ---------- */
.w2d07-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--w2d07-bg-alt);
  border-top: 1px solid var(--w2d07-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.35);
}
.w2d07-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--w2d07-text-muted);
  font-size: 1rem;
  min-height: 60px;
  min-width: 60px;
  text-decoration: none;
  position: relative;
  transition: color .2s ease;
  cursor: pointer;
}
.w2d07-bottom-nav a i,
.w2d07-bottom-nav a .material-icons-outlined,
.w2d07-bottom-nav a ion-icon { font-size: 22px; }
.w2d07-bottom-nav a ion-icon { --ionicon-stroke-width: 40px; }
.w2d07-bottom-nav a span { font-size: 1rem; font-weight: 600; }
.w2d07-bottom-nav a.w2d07-current { color: var(--w2d07-primary); }
.w2d07-bottom-nav a.w2d07-current::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 3px;
  background: var(--w2d07-primary);
  border-radius: 0 0 3px 3px;
}
.w2d07-bottom-nav a:active { transform: scale(0.92); color: var(--w2d07-primary); }
.w2d07-bottom-nav a .w2d07-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: var(--w2d07-primary);
  color: #2a0f0f;
  font-size: 0.9rem;
  font-weight: 800;
  min-width: 15px; height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Back to top ---------- */
.w2d07-to-top {
  position: fixed;
  bottom: 76px; right: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--w2d07-primary);
  color: #2a0f0f;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .2s ease;
  z-index: 999;
  box-shadow: var(--w2d07-shadow);
}
.w2d07-to-top.w2d07-show { opacity: 1; pointer-events: auto; }
.w2d07-to-top:active { transform: scale(0.9); }

/* ---------- Reveal animation ---------- */
.w2d07-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.w2d07-reveal.w2d07-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.w2d07-text-center { text-align: center; }
.w2d07-mt-10 { margin-top: 10px; }
.w2d07-mt-16 { margin-top: 16px; }
.w2d07-mb-10 { margin-bottom: 10px; }
.w2d07-hidden { display: none !important; }
.w2d07-row { display: flex; gap: 10px; align-items: center; }

/* ---------- Desktop: hide bottom nav, widen wrapper ---------- */
@media (min-width: 769px) {
  .w2d07-bottom-nav { display: none; }
  main.w2d07-main { padding-bottom: 30px; }
  .w2d07-wrapper {
    max-width: 430px;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 360px) {
  .w2d07-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .w2d07-game-name { font-size: 1rem; }
  .w2d07-section-title { font-size: 1.4rem; }
}

/* ---------- Touch targets ---------- */
@media (hover: none) {
  .w2d07-game-card:hover { transform: none; }
}
