/* PRABHU365 — prabhu-365.com
   Light lobby look, recast spacing, type and colour from the source template. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --crimson: #be1622;
  --crimson-deep: #8f0f18;
  --crimson-soft: #e4454d;
  --gold: #c9a227;
  --gold-bright: #e8c547;
  --ink: #1c1412;
  --muted: #6d5e58;
  --line: #d7c4ba;
  --paper: #cbb8ae;
  --sheet: #fffdfb;
  --card: #ffffff;
  --header-h: 58px;
  --ticker-h: 36px;
  --nav-h: 64px;
  --left-w: 250px;
  --right-w: 268px;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(48, 16, 18, .16);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  background-color: #b7a197;
  background-image:
    linear-gradient(180deg, rgba(62, 28, 28, .18), rgba(42, 18, 16, .28)),
    url("/assets/img/ui/body.jpg");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--crimson); color: #fff; padding: 8px 12px; z-index: 2000;
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 80;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: linear-gradient(180deg, #fff 0%, #fff8f5 100%);
  border-bottom: 3px solid var(--crimson);
  box-shadow: 0 4px 16px rgba(190, 22, 34, .12);
}
.header-slot { display: flex; align-items: center; gap: 8px; min-width: 72px; z-index: 2; position: relative; flex-shrink: 0; }
.header-slot.right { justify-content: flex-end; }
.brand { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; }
.brand img { height: 40px; width: auto; }

.menu-btn {
  width: 40px; height: 40px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border-radius: 10px; background: #fff5f3;
}
.menu-btn span {
  display: block; width: 18px; height: 2px; background: var(--crimson); border-radius: 2px;
}

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}
.lang-switch img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }

/* Ticker */
.ticker {
  position: sticky; top: var(--header-h); z-index: 70;
  height: var(--ticker-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
  background: linear-gradient(90deg, var(--crimson-deep), var(--crimson) 40%, #d32632);
  color: #fff; overflow: hidden;
}
.ticker img { width: 22px; height: 22px; flex-shrink: 0; }
.ticker-track { display: flex; white-space: nowrap; animation: marquee 38s linear infinite; }
.ticker-track span { padding: 0 28px; font-size: 12px; font-weight: 500; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Layout */
.lobby {
  width: min(1320px, calc(100% - 16px));
  margin: 12px auto 24px;
  display: grid;
  grid-template-columns: var(--left-w) minmax(0, 1fr) var(--right-w);
  gap: 12px;
  max-width: 100%;
}
.col-center, .col-left, .col-right { min-width: 0; }

.panel {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.slider { overflow: hidden; border-radius: var(--radius); }

/* Slider */
.slider { position: relative; aspect-ratio: 16/9; background: #fff3f0; }
.slider .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .5s ease;
  display: flex; align-items: center; justify-content: center;
}
.slider .slide img { width: 100%; height: 100%; object-fit: contain; }
.slider .slide.is-on { opacity: 1; }
.slider-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.slider-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45);
}
.slider-dots button.is-on { background: var(--gold-bright); }

.ref-card { position: relative; }
.ref-card img.ref-art { width: 100%; display: block; }
.ref-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 8px 10px 12px;
}
.ref-actions a {
  display: block; height: 52px; border-radius: 10px;
  background: center / contain no-repeat #fff7f2;
  border: 1px solid var(--line);
}

.lucky-link { display: block; padding: 0 10px 12px; }
.lucky-link img { width: 100%; border-radius: 10px; }

/* Auth */
.auth-box { padding: 14px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.balance-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.balance-val { font-size: 22px; font-weight: 800; color: var(--crimson); line-height: 1.1; }
.flag-npr { width: 38px; height: 38px; border-radius: 50%; }
.auth-meta {
  display: flex; justify-content: space-between; gap: 8px;
  margin: 10px 0 12px; font-size: 11px; color: var(--muted);
}
.auth-meta strong { color: var(--gold); }
.auth-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 8px 16px;
  border-radius: 10px; font-weight: 700; font-size: 13px; letter-spacing: .04em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost {
  background: #fff; color: var(--crimson);
  border: 1.5px solid var(--crimson);
}
.btn-solid {
  background: linear-gradient(180deg, #e4454d, var(--crimson));
  color: #fff; border: 1.5px solid var(--crimson-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-wide { width: 100%; }
.bonus-note {
  margin-top: 12px; padding: 10px 12px;
  background: #fff6ea; border: 1px dashed var(--gold);
  border-radius: 10px; font-size: 12px; color: #5c4314;
}

.mobile-auth {
  display: none; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px; background: var(--sheet);
  border: 1px solid var(--line); border-radius: var(--radius);
  width: 100%;
}
.mobile-auth .btn { width: 100%; min-width: 0; }

/* Categories */
.cats {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 8px 4px; scrollbar-width: none;
  width: 100%; max-width: 100%;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 78px; text-align: center; color: var(--muted); font-size: 11px; font-weight: 600;
  position: relative;
}
.cat span {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.cat img {
  width: 72px; height: 72px; margin: 0 auto 4px;
  object-fit: contain; filter: grayscale(.15) saturate(.9);
}
.cat.is-on { color: var(--crimson); }
.cat.is-on img { filter: none; transform: translateY(-2px); }

.grid-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 12px 4px;
}
.grid-head h2 { font-size: 16px; }
.grid-head span { font-size: 12px; color: var(--muted); }

.game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 8px 10px 12px;
}
.game-card {
  position: relative; display: block; border-radius: 12px; overflow: hidden;
  background: #1a0a0c; aspect-ratio: 3/4;
  box-shadow: 0 6px 14px rgba(80,18,22,.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.game-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(80,18,22,.18); }
.game-card.is-hidden { display: none; }
.pill {
  position: absolute; top: 8px; left: 8px;
  background: var(--crimson); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 999px;
}
.more-wrap { padding: 0 10px 14px; }
.btn-more {
  width: 100%; min-height: 40px; border-radius: 999px;
  background: #fff4f0; color: var(--crimson); border: 1px solid var(--line);
  font-weight: 700;
}

.leader-link { display: block; margin: 0 10px 12px; border-radius: 12px; overflow: hidden; }
.leader-link img { width: 100%; }

/* Side menu */
.veil {
  position: fixed; inset: 0; background: rgba(20,8,8,.5);
  opacity: 0; pointer-events: none; z-index: 90; transition: opacity .2s;
}
.veil.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 88vw);
  background: #fff; z-index: 100; transform: translateX(-105%);
  transition: transform .25s ease; overflow-y: auto;
  box-shadow: 8px 0 30px rgba(0,0,0,.18);
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: #fff; border-bottom: 3px solid var(--crimson);
}
.drawer-head img { height: 34px; }
.drawer-close { color: var(--crimson); font-size: 22px; width: 36px; height: 36px; }
.drawer a, .drawer .lang-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.drawer a img { width: 28px; height: 28px; object-fit: contain; }
.drawer .lang-row { justify-content: flex-start; }
.chip {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line);
}
.chip.on { background: var(--crimson); color: #fff; border-color: var(--crimson); }

/* Bottom nav */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: var(--nav-h);
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: grid; place-items: center;
}
.bottom-nav img { height: 46px; width: auto; object-fit: contain; }

/* Content sections */
.section {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto 28px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
}
.section h1, .section h2, .prose h1, .prose h2 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25; margin-bottom: 10px; color: #2a1214;
}
.section h2, .prose h2 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 8px; }
.section h3, .prose h3 { font-size: 18px; margin: 18px 0 8px; color: var(--crimson-deep); }
.section p, .prose p { margin-bottom: 12px; color: #3f3330; }
.section ul, .prose ul { margin: 0 0 14px 18px; list-style: disc; color: #3f3330; }
.section li, .prose li { margin: 6px 0; }
.section img, .prose img { border-radius: 12px; margin: 12px 0; width: 100%; }

.feature-grid, .pay-grid, .step-grid {
  display: grid; gap: 12px; margin: 18px 0;
}
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.pay-grid { grid-template-columns: repeat(5, 1fr); }
.step-grid { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.card h3 { margin-top: 0; font-size: 16px; }
.card img.thumb {
  width: 100%; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: 10px;
}
.icon-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.icon-row img { width: 48px; height: 48px; object-fit: contain; }

.pay-item {
  display: grid; place-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px;
  text-align: center; font-size: 12px; font-weight: 600;
}
.pay-item img { width: 100%; height: 36px; object-fit: contain; }

.step {
  background: #fff8f4; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.step b {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--crimson); color: #fff; font-size: 13px; margin-bottom: 8px;
}

.app-split {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center;
}
.phone {
  width: 210px; margin: 0 auto;
  background: #1b1110; border-radius: 28px; padding: 12px 10px 18px;
  box-shadow: 0 18px 40px rgba(80,18,22,.25);
}
.phone-top { height: 18px; display: grid; place-items: center; }
.phone-top span { width: 72px; height: 8px; background: #2c1c1a; border-radius: 8px; }
.phone-screen { background: #fff; border-radius: 16px; overflow: hidden; }
.phone-screen img { width: 100%; }
.mini-games { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; }
.mini-games img { border-radius: 8px; height: 86px; object-fit: cover; width: 100%; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 14px 2px; font-weight: 700; font-size: 15px;
}
.faq-q span.plus {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: #fff1ee; color: var(--crimson);
}
.faq-a { display: none; padding: 0 2px 14px; color: #3f3330; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q span.plus { background: var(--crimson); color: #fff; }

/* Calculator */
.calc {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.calc input[type="number"], .calc input[type="range"] { width: 100%; }
.calc input[type="number"] {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 18px; font-weight: 700;
}
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.presets button {
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff7f2; font-weight: 600; font-size: 12px;
}
.calc-total { font-size: 26px; font-weight: 800; color: var(--crimson); }

/* Inner pages */
.page-hero {
  width: min(1080px, calc(100% - 24px));
  margin: 16px auto 18px;
  background: linear-gradient(135deg, #fff 0%, #ffe8e4 52%, #fff6ea 100%);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 22px;
}
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--crimson); }
.page-wrap { padding-bottom: calc(var(--nav-h) + 28px); }

.site-footer {
  background: #2a1214 url("/assets/img/ui/footer.jpg") center / cover;
  color: #f7e9e6; padding: 28px 16px 90px; margin-top: 12px;
}
.footer-inner { width: min(1080px, 100%); margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; margin-bottom: 18px;
}
.site-footer a { color: #ffd6d4; }
.site-footer h3 { color: #fff; font-size: 14px; margin-bottom: 8px; }
.age-badge {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #fff; font-weight: 800; margin-bottom: 8px;
}
.tiny { font-size: 12px; color: #e7cfc9; }

/* Float */
.float-play {
  position: fixed; right: 12px; bottom: calc(var(--nav-h) + 16px); z-index: 86;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--crimson); box-shadow: 0 8px 18px rgba(190,22,34,.35);
  display: grid; place-items: center; overflow: hidden;
}
.float-play img { width: 42px; height: 42px; object-fit: contain; }

body.has-nav { padding-bottom: var(--nav-h); }

@media (max-width: 1100px) {
  .lobby { grid-template-columns: 1fr 280px; }
  .col-left { display: none; }
  .feature-grid, .step-grid { grid-template-columns: 1fr 1fr; }
  .pay-grid { grid-template-columns: repeat(3, 1fr); }
  .app-split, .calc, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lobby { grid-template-columns: 1fr; width: calc(100% - 12px); }
  .col-right { display: none; }
  .mobile-auth { display: grid; }
  .mobile-auth .btn { font-size: 12px; padding: 10px 8px; letter-spacing: 0.04em; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .feature-grid, .step-grid, .pay-grid { grid-template-columns: 1fr 1fr; }
  .section, .page-hero { padding: 20px 14px; }
  .brand img { height: 32px; }
  .lang-switch { background: #fff5f3; border-color: var(--crimson); }
  .phone { width: 180px; }
}
@media (max-width: 420px) {
  .cat { flex: 0 0 70px; }
  .cat img { width: 64px; height: 64px; }
}
