/* ===========================================================
   Rainbet Promo Code - layout.css
   Mobile-first PH casino/gaming page. Class prefix: vc54-
   Palette: #3A3A3A (dark bg) / #BAE1FF / #FFB6C1 / #FA8072 / #FF1493
   =========================================================== */

:root {
  --vc54-bg: #3A3A3A;
  --vc54-bg-2: #2c2c2c;
  --vc54-bg-3: #1f1f1f;
  --vc54-card: #454545;
  --vc54-text: #ffffff;
  --vc54-text-soft: #f3f3f3;
  --vc54-muted: #cfcfcf;
  --vc54-blue: #BAE1FF;
  --vc54-pink: #FFB6C1;
  --vc54-coral: #FA8072;
  --vc54-magenta: #FF1493;
  --vc54-gold: #ffd479;
  --vc54-radius: 14px;
  --vc54-shadow: 0 8px 22px rgba(0,0,0,.35);
  --vc54-max: 430px;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #4a4a4a 0%, var(--vc54-bg) 60%, var(--vc54-bg-3) 100%);
  color: var(--vc54-text);
  line-height: 1.5;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--vc54-blue); text-decoration: none; }
a:hover { color: var(--vc54-pink); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }

.vc54-container {
  max-width: var(--vc54-max);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.vc54-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------- Header ---------------- */
.vc54-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(20,20,20,.96), rgba(58,58,58,.92));
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--vc54-magenta);
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
}
.vc54-header-inner {
  max-width: var(--vc54-max);
  margin: 0 auto;
  padding: .7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.vc54-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--vc54-text);
  flex: 1;
  min-width: 0;
}
.vc54-logo img { width: 34px; height: 34px; border-radius: 8px; }
.vc54-logo-text {
  background: linear-gradient(90deg, var(--vc54-coral), var(--vc54-magenta), var(--vc54-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vc54-header-actions { display: flex; gap: .5rem; align-items: center; }

.vc54-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-align: center;
  padding: .65rem 1rem;
  border-radius: 999px;
  font-size: 1.35rem;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none;
  min-height: 40px;
}
.vc54-btn:active { transform: scale(.96); }
.vc54-btn-register {
  background: linear-gradient(90deg, var(--vc54-magenta), var(--vc54-coral));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,20,147,.5);
}
.vc54-btn-login {
  background: rgba(255,255,255,.08);
  color: var(--vc54-text);
  border: 1.5px solid var(--vc54-blue);
}
.vc54-btn-ghost {
  background: transparent;
  color: var(--vc54-text);
  border: 1.5px solid rgba(255,255,255,.25);
}
.vc54-btn-block { width: 100%; padding: .85rem 1rem; font-size: 1.5rem; }
.vc54-icon-btn {
  background: transparent;
  border: 0;
  color: var(--vc54-text);
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 10px;
}
.vc54-icon-btn .material-symbols-outlined { font-size: 24px; }

/* ---------------- Hero / Carousel ---------------- */
.vc54-hero {
  position: relative;
  padding: 1.2rem 0 1.5rem;
}
.vc54-hero-viewport { overflow: hidden; border-radius: 18px; box-shadow: var(--vc54-shadow); }
.vc54-hero-track { position: relative; }
.vc54-hero-slide {
  display: none;
  position: relative;
  background: linear-gradient(135deg, #2a2a2a, #3A3A3A 60%, #5a1d3e 100%);
  padding: 1.6rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
  min-height: 220px;
}
.vc54-hero-slide.vc54-active { display: block; animation: vc54fade .55s ease; }
@keyframes vc54fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vc54-hero-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,20,147,.18);
  color: var(--vc54-pink);
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .65rem;
}
.vc54-hero h1, .vc54-hero h2 { color: #fff; }
.vc54-hero p { color: var(--vc54-muted); font-size: 1.35rem; }
.vc54-hero-cta { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.vc54-hero-dots {
  display: flex; justify-content: center; gap: .5rem;
  margin-top: .9rem;
}
.vc54-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 0; padding: 0; cursor: pointer;
}
.vc54-hero-dot.vc54-active { background: var(--vc54-magenta); width: 22px; border-radius: 5px; }

/* ---------------- Marquee strip ---------------- */
.vc54-marquee {
  background: linear-gradient(90deg, var(--vc54-magenta), var(--vc54-coral));
  color: #fff;
  padding: .6rem 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 1.25rem;
  font-weight: 700;
}
.vc54-marquee span { display: inline-block; padding-left: 100%; animation: vc54scroll 18s linear infinite; }
@keyframes vc54scroll { to { transform: translateX(-100%); } }

/* ---------------- Section ---------------- */
.vc54-section { padding: 1.8rem 0 .4rem; }
.vc54-section-title {
  display: flex; align-items: center; gap: .55rem;
  margin-bottom: 1rem;
}
.vc54-section-title h2 { margin: 0; flex: 1; }
.vc54-badge {
  background: var(--vc54-magenta);
  color: #fff;
  font-size: 1rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-weight: 700;
}

/* ---------------- Category filter ---------------- */
.vc54-filter {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: .3rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.vc54-filter::-webkit-scrollbar { display: none; }
.vc54-filter-tab {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: var(--vc54-text);
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.vc54-filter-tab.vc54-active {
  background: linear-gradient(90deg, var(--vc54-magenta), var(--vc54-coral));
  border-color: transparent;
  color: #fff;
}

/* ---------------- Game grid ---------------- */
.vc54-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}
.vc54-game-card {
  background: var(--vc54-card);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.vc54-game-card:active { transform: scale(.96); }
.vc54-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #222;
}
.vc54-game-name {
  padding: .45rem .5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--vc54-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vc54-game-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.vc54-game-card:hover .vc54-game-overlay,
.vc54-game-card:focus-visible .vc54-game-overlay { opacity: 1; }
.vc54-game-overlay .vc54-btn { font-size: 1.15rem; padding: .5rem .9rem; }
.vc54-game-tag {
  position: absolute; top: 6px; left: 6px;
  background: var(--vc54-magenta);
  color: #fff;
  font-size: 1rem;
  padding: .12rem .4rem;
  border-radius: 6px;
  font-weight: 700;
}
.vc54-game-tag.hot { background: var(--vc54-coral); }
.vc54-game-tag.new { background: var(--vc54-blue); color: #222; }

/* ---------------- Featured ---------------- */
.vc54-featured {
  background: linear-gradient(135deg, rgba(255,20,147,.16), rgba(186,225,255,.06));
  border: 1px solid rgba(255,20,147,.3);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.vc54-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}
.vc54-featured-card {
  display: flex; gap: .9rem; align-items: center;
  background: rgba(0,0,0,.25);
  border-radius: 12px;
  padding: .8rem;
}
.vc54-featured-card img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; }
.vc54-featured-meta { flex: 1; min-width: 0; }
.vc54-featured-meta h3 { margin: 0 0 .25rem; font-size: 1.45rem; }
.vc54-featured-meta p { margin: 0; font-size: 1.15rem; color: var(--vc54-muted); }

/* ---------------- Promo banner CTA ---------------- */
.vc54-promo-banner {
  background: linear-gradient(90deg, var(--vc54-magenta), var(--vc54-coral));
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  margin: 1.2rem 0;
  box-shadow: 0 10px 24px rgba(255,20,147,.35);
}
.vc54-promo-banner h3 { color: #fff; margin-bottom: .35rem; }
.vc54-promo-banner p { color: rgba(255,255,255,.9); margin-bottom: .9rem; }
.vc54-promo-banner .vc54-btn { background: #fff; color: var(--vc54-magenta); }

/* ---------------- Steps ---------------- */
.vc54-steps { counter-reset: step; display: grid; gap: .7rem; }
.vc54-step {
  display: flex; gap: .8rem; align-items: flex-start;
  background: rgba(255,255,255,.04);
  border-left: 3px solid var(--vc54-coral);
  padding: .9rem 1rem;
  border-radius: 10px;
}
.vc54-step-num {
  counter-increment: step;
  width: 28px; height: 28px;
  flex-shrink: 0;
  background: var(--vc54-magenta);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
}
.vc54-step-num::before { content: counter(step); }
.vc54-step-body h4 { margin: 0 0 .25rem; font-size: 1.35rem; }
.vc54-step-body p { margin: 0; font-size: 1.2rem; color: var(--vc54-muted); }

/* ---------------- FAQ ---------------- */
.vc54-faq { display: grid; gap: .55rem; }
.vc54-faq-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
}
.vc54-faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--vc54-text);
  text-align: left;
  padding: 1rem 1.1rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: .6rem;
}
.vc54-faq-q .material-symbols-outlined { transition: transform .2s; color: var(--vc54-pink); }
.vc54-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 1.1rem;
  color: var(--vc54-muted);
  font-size: 1.22rem;
}
.vc54-faq-item.vc54-open .vc54-faq-a { max-height: 320px; padding: 0 1.1rem 1rem; }
.vc54-faq-item.vc54-open .vc54-faq-q .material-symbols-outlined { transform: rotate(45deg); }

/* ---------------- SEO long text ---------------- */
.vc54-seo-text {
  background: rgba(0,0,0,.22);
  border-radius: 14px;
  padding: 1.3rem 1.2rem;
  color: var(--vc54-text-soft);
  font-size: 1.25rem;
}
.vc54-seo-text h2, .vc54-seo-text h3 { color: #fff; }
.vc54-seo-text a { color: var(--vc54-pink); font-weight: 700; }
.vc54-seo-text ul { padding-left: 1.3rem; }
.vc54-seo-text li { margin-bottom: .35rem; }

/* ---------------- Internal link grid ---------------- */
.vc54-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.vc54-link-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: .85rem .9rem;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--vc54-text);
  display: flex; align-items: center; gap: .45rem;
}
.vc54-link-card:hover { background: rgba(255,20,147,.14); color: #fff; }

/* ---------------- Footer ---------------- */
.vc54-footer {
  background: var(--vc54-bg-3);
  border-top: 2px solid var(--vc54-magenta);
  padding: 1.6rem 0 1.4rem;
  color: var(--vc54-muted);
  margin-top: 1.5rem;
}
.vc54-footer h4 { color: #fff; font-size: 1.4rem; margin-bottom: .55rem; }
.vc54-footer ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.vc54-footer li { margin-bottom: .35rem; }
.vc54-footer a { color: var(--vc54-muted); font-size: 1.18rem; }
.vc54-footer a:hover { color: var(--vc54-pink); }
.vc54-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 1rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--vc54-muted);
}

/* ---------------- Mobile menu ---------------- */
.vc54-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden;
  transition: opacity .25s;
  z-index: 9998;
}
.vc54-menu-overlay.vc54-show { opacity: 1; visibility: visible; }
.vc54-mobile-menu {
  position: fixed;
  top: 0; right: -86%;
  width: 86%; max-width: 320px;
  height: 100%;
  background: linear-gradient(180deg, #2c2c2c, #1f1f1f);
  z-index: 9999;
  padding: 1.4rem 1.2rem;
  overflow-y: auto;
  transition: right .28s ease;
  box-shadow: -8px 0 24px rgba(0,0,0,.45);
}
.vc54-mobile-menu.vc54-open { right: 0; }
.vc54-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding-bottom: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.vc54-menu-head h3 { margin: 0; color: #fff; font-size: 1.6rem; }
.vc54-menu-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem .6rem;
  color: var(--vc54-text);
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}
.vc54-menu-link:hover, .vc54-menu-link:focus { background: rgba(255,20,147,.14); color: #fff; }
.vc54-menu-cta { margin-top: 1rem; display: grid; gap: .55rem; }

/* ---------------- Back to top ---------------- */
.vc54-back-top {
  position: fixed;
  right: 14px; bottom: 86px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vc54-magenta), var(--vc54-coral));
  color: #fff;
  border: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--vc54-shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all .25s;
  z-index: 900;
}
.vc54-back-top.vc54-show { opacity: 1; visibility: visible; transform: none; }

/* ---------------- Mobile bottom nav ---------------- */
.vc54-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(31,31,31,.98), rgba(20,20,20,.99));
  border-top: 2px solid var(--vc54-magenta);
  box-shadow: 0 -4px 18px rgba(0,0,0,.5);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 62px;
}
.vc54-bottom-nav a, .vc54-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--vc54-muted);
  background: transparent;
  border: 0;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  min-width: 60px;
  min-height: 60px;
  padding: 4px 2px;
  transition: color .15s;
}
.vc54-bottom-nav a:hover, .vc54-bottom-nav button:hover { color: var(--vc54-text); }
.vc54-bottom-nav .vc54-nav-active { color: var(--vc54-pink); }
.vc54-bottom-nav .material-symbols-outlined,
.vc54-bottom-nav .bi,
.vc54-bottom-nav .ion-icon { font-size: 24px; }
.vc54-bottom-nav .vc54-nav-promo {
  color: #fff;
  position: relative;
}
.vc54-bottom-nav .vc54-nav-promo::before {
  content: "";
  position: absolute;
  top: -10px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vc54-magenta), var(--vc54-coral));
  box-shadow: 0 4px 12px rgba(255,20,147,.55);
}
.vc54-bottom-nav .vc54-nav-promo .material-symbols-outlined,
.vc54-bottom-nav .vc54-nav-promo .bi {
  position: relative; z-index: 1;
  font-size: 24px;
  color: #fff;
}

main { padding-bottom: 80px; }

/* ---------------- Desktop rules ---------------- */
@media (min-width: 769px) {
  .vc54-bottom-nav { display: none; }
  main { padding-bottom: 0; }
  body { background: radial-gradient(900px 500px at 50% -10%, #4a4a4a 0%, var(--vc54-bg) 60%, var(--vc54-bg-3) 100%) fixed; }
}

/* Make sure literal 430px is used as the max-width cap */
.vc54-shell { max-width: 430px; margin: 0 auto; }
