/* ====================================================================
   RummyTop — Global styles
   ==================================================================== */
:root{
  --maroon:#4a0d0d;
  --maroon-dark:#3a0808;
  --coral:#e8736a;
  --coral-dark:#d8584e;
  --blue:#2f8fe0;
  --blue-dark:#1f7ad0;
  --green:#1aa260;
  --gold:#f5b301;
  --text:#2b2b2b;
  --muted:#6b6b6b;
  --line:#e4e4e4;
  --page-bg:#dcdcdc;
  --card:#ffffff;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color:var(--text);
  background:var(--page-bg);
  line-height:1.55;
  font-size:15px;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}

/* ---- Page frame (centered mobile-like column) ---- */
.wrap{
  max-width:430px;
  margin:0 auto;
  background:#fff;
  min-height:100vh;
  box-shadow:0 0 18px rgba(0,0,0,.15);
}

/* ---- Top bar ---- */
.topbar{
  background:var(--maroon);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 14px;
  gap:10px;
}
.topbar .logo img{height:34px;width:auto}
.tg-btn{
  display:inline-flex;align-items:center;gap:7px;
  background:linear-gradient(180deg,#2aabee,#1e96d8);
  color:#fff;font-weight:600;font-size:13px;
  padding:7px 14px;border-radius:6px;
  box-shadow:0 2px 4px rgba(0,0,0,.25);
  transition:filter .15s;
}
.tg-btn:hover{filter:brightness(1.07)}
.tg-btn svg{width:16px;height:16px;fill:#fff}

/* ---- Search ---- */
.searchbar{background:var(--coral);padding:7px 12px}
.searchbar form{display:flex;position:relative}
.searchbar input{
  flex:1;border:none;outline:none;
  padding:8px 40px 8px 14px;border-radius:6px;
  font-size:14px;background:#fff;color:#333;
}
.searchbar button{
  position:absolute;right:0;top:0;bottom:0;width:42px;
  border:none;background:transparent;cursor:pointer;color:#c0392b;
  font-size:16px;display:flex;align-items:center;justify-content:center;
}
/* live search dropdown */
.search-results{
  position:absolute;top:40px;left:0;right:0;z-index:40;
  background:#fff;border:1px solid var(--line);border-radius:8px;
  box-shadow:0 8px 22px rgba(0,0,0,.18);overflow:hidden;display:none;
}
.search-results.show{display:block}
.search-results a{
  display:flex;align-items:center;gap:10px;padding:9px 12px;
  border-bottom:1px solid #f0f0f0;font-size:14px;
}
.search-results a:last-child{border-bottom:none}
.search-results a:hover{background:#fdf1f0}
.search-results img{width:30px;height:30px;border-radius:6px;object-fit:cover}
.search-results .empty{padding:12px;color:var(--muted);font-size:13px;text-align:center}

/* ---- Nav ---- */
.nav{
  display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;
  gap:1px;padding:11px 4px;background:#fff;border-bottom:1px solid var(--line);
}
.nav a{
  display:inline-flex;align-items:center;gap:4px;white-space:nowrap;
  font-weight:600;font-size:13px;color:#222;padding:4px 6px;
}
.nav a .ic{font-size:12px;color:#333}
.nav .sep{color:#d0d0d0;font-size:12px}
.nav a.active{color:var(--coral-dark)}

/* ---- Carousel ---- */
.carousel{position:relative;overflow:hidden;background:#000}
.carousel .slides{display:flex;transition:transform .6s ease}
.carousel .slides a,.carousel .slides .slide{min-width:100%}
.carousel img{width:100%;display:block}
.carousel .dots{
  position:absolute;bottom:8px;left:0;right:0;display:flex;justify-content:center;gap:6px;
}
.carousel .dots span{
  width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;
}
.carousel .dots span.active{background:#fff}

/* ---- Podium (3 ranks) ---- */
.podium{
  display:grid;grid-template-columns:1fr 1.12fr 1fr;align-items:end;
  gap:10px;padding:22px 14px 28px;background:#fff;
}
.rank{text-align:center;background:#fff;border-radius:10px;padding:10px 6px 16px}
.rank.center{transform:translateY(-8px)}
.rank .badge{
  display:inline-block;font-size:14px;font-weight:800;color:#fff;
  padding:5px 18px;border-radius:22px 22px 0 0;margin-bottom:8px;line-height:1;
}
.rank.center .badge{background:linear-gradient(180deg,#f6c544,#e0a800)}
.rank.left   .badge{background:linear-gradient(180deg,#9fb4c9,#7c91a8)}
.rank.right  .badge{background:linear-gradient(180deg,#d79a6a,#bd7c47)}
.rank .applogo{width:96px;height:96px;margin:6px auto;border-radius:20px;
  object-fit:cover;box-shadow:0 4px 10px rgba(0,0,0,.2)}
.rank.center .applogo{width:112px;height:112px}
.rank .name{font-weight:700;font-size:16px;margin:9px 0 5px}
.rank.center .name{font-size:18px}
.rank .stars{height:19px;margin:0 auto 7px}
.rank .secure{font-size:12.5px;color:var(--green);font-weight:700;margin-bottom:11px}
.rank .secure::before{content:"✔ "}

/* ---- Download button ---- */
.dl-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  background:linear-gradient(180deg,#3a9bea,#1f7ad0);
  color:#fff;font-weight:600;font-size:13px;
  padding:8px 18px;border-radius:6px;box-shadow:0 2px 4px rgba(0,0,0,.2);
  transition:filter .15s;
}
.dl-btn:hover{filter:brightness(1.07)}
.dl-btn svg{width:14px;height:14px;fill:#fff}

/* ---- Age strip ---- */
.age-strip{
  background:var(--maroon);color:var(--gold);text-align:center;
  font-size:12px;font-weight:600;padding:8px 10px;
}

/* ---- Tabs ---- */
.tabs{display:flex;background:#ededed;margin:14px 12px 0;border-radius:8px 8px 0 0;overflow:hidden;border:1px solid #e0e0e0}
.tab-btn{
  flex:1;padding:12px 6px;border:none;background:#ededed;cursor:pointer;
  font-weight:600;font-size:13.5px;color:#444;display:flex;align-items:center;
  justify-content:center;gap:6px;border-right:1px solid #e0e0e0;
}
.tab-btn:last-child{border-right:none}
.tab-btn.active{background:#fff;color:#111;box-shadow:inset 0 -3px 0 var(--coral-dark)}

.app-list{padding:0 12px 8px;border:1px solid #e0e0e0;border-top:none;margin:0 12px 16px;border-radius:0 0 8px 8px}
.tab-panel{display:none}
.tab-panel.active{display:block}

/* ---- App row ---- */
.app-row{
  display:flex;align-items:center;gap:12px;
  padding:14px 4px;border-bottom:1px solid var(--line);
}
.app-row:last-child{border-bottom:none}
.app-row .applogo{width:74px;height:74px;border-radius:16px;object-fit:cover;
  box-shadow:0 2px 6px rgba(0,0,0,.15);flex-shrink:0}
.app-row .info{flex:1;min-width:0}
.app-row .info h3{font-size:16px;font-weight:700;margin-bottom:4px}
.app-row .meta{font-size:12.5px;line-height:1.85}
.app-row .meta>div{display:flex;align-items:center;gap:6px}
.app-row .meta .mic{width:15px;height:15px;flex-shrink:0}
.app-row .meta .installs{color:var(--blue);font-weight:700}
.app-row .meta .size{color:#555;font-weight:600}
.app-row .meta .wd{color:var(--green);font-weight:700}

/* ---- Content sections ---- */
.section{padding:22px 16px;background:#fff}
.section.alt{background:#f3f3f3}
.section h1,
.section h2{text-align:center;font-size:21px;font-weight:800;margin-bottom:6px;color:#222}
.section h1 .hl,
.section h2 .hl{color:var(--coral-dark)}
.section .sub{text-align:center;color:var(--muted);font-size:13.5px;margin-bottom:16px}
.section p{margin-bottom:12px;font-size:14px;color:#333}
.pill-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:14px 0}
.pill{border:1px solid #cfcfcf;border-radius:20px;padding:5px 14px;font-size:12px;color:#555}
.tag{display:inline-block;background:var(--maroon);color:#fff;font-size:11px;font-weight:700;
  letter-spacing:.5px;padding:5px 14px;border-radius:5px;margin:0 auto 14px}
.center{text-align:center}

/* trust / feature cards */
.features{display:grid;grid-template-columns:1fr;gap:18px;margin-top:14px}
.feature{text-align:center}
.feature .fic{font-size:34px;color:var(--green);margin-bottom:6px}
.feature h3{font-size:16px;font-weight:700;margin-bottom:6px}
.feature p{font-size:13px;color:#555}

/* steps */
.step{display:flex;gap:12px;margin-bottom:18px}
.step .num{flex-shrink:0;width:34px;height:34px;border-radius:50%;
  background:var(--coral-dark);color:#fff;display:flex;align-items:center;
  justify-content:center;font-weight:700;font-size:15px}
.step h3{color:var(--coral-dark);font-size:16px;font-weight:700;margin-bottom:3px}
.step p{font-size:13.5px;color:#444;margin:0}
.note{text-align:center;font-size:13px;color:#444;font-style:italic;margin-top:8px}

/* benefits list */
.benefits{list-style:none;margin-top:8px}
.benefits li{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px;
  font-size:14px;color:var(--green);font-weight:600}
.benefits li::before{content:"✔";color:var(--green);font-weight:800}
.benefits li span{color:var(--green)}

/* FAQ */
.faq-item{border-bottom:1px solid var(--line);padding:14px 0}
.faq-q{font-weight:700;font-size:15px;cursor:pointer;display:flex;justify-content:space-between;gap:10px}
.faq-q .arrow{transition:transform .2s;color:var(--coral-dark)}
.faq-item.open .faq-q .arrow{transform:rotate(180deg)}
.faq-a{font-size:13.5px;color:#555;max-height:0;overflow:hidden;transition:max-height .25s ease,margin .25s}
.faq-item.open .faq-a{max-height:400px;margin-top:8px}

/* ---- Footer ---- */
.footer{background:var(--maroon);color:#fff}
.footer .age{display:flex;align-items:center;justify-content:space-between;
  gap:10px;padding:12px 16px;color:var(--gold);font-size:12px;font-weight:600;
  border-bottom:1px solid rgba(255,255,255,.12)}
.footer .age .dmca{background:#f5b301;color:#3a0808;font-size:9px;font-weight:800;
  padding:3px 6px;border-radius:3px;white-space:nowrap}
.footer .links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;
  padding:16px;font-size:13.5px}
.footer .links a{display:inline-flex;align-items:center;gap:6px}
.footer .copy{text-align:center;font-size:12.5px;padding:12px;background:var(--maroon-dark)}

/* ---- App detail page ---- */
.app-hero{padding:26px 16px;text-align:center;background:#fff}
.app-hero .applogo{width:120px;height:120px;border-radius:26px;margin:0 auto 12px;
  object-fit:cover;box-shadow:0 6px 16px rgba(0,0,0,.2)}
.app-hero h1{font-size:24px;font-weight:800;margin-bottom:6px}
.app-hero .stars{height:18px;margin:0 auto 10px}
.app-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;
  margin:18px auto;max-width:380px}
.app-stats .stat{background:#f5f5f5;border-radius:10px;padding:12px 6px}
.app-stats .stat .v{font-weight:800;font-size:15px;color:#222}
.app-stats .stat .l{font-size:11px;color:var(--muted);margin-top:2px}
.app-hero .dl-btn{font-size:15px;padding:12px 34px;margin-top:6px}
.app-hero .secure{color:var(--green);font-weight:700;font-size:13px;margin-top:12px}
.app-hero .secure::before{content:"✔ "}
.app-back{display:inline-block;margin:14px 0 0;color:var(--coral-dark);font-weight:600;font-size:13px}

/* page-title for sub pages */
.page-head{background:var(--maroon);color:#fff;text-align:center;padding:26px 16px}
.page-head h1{font-size:24px;font-weight:800}
.page-body{padding:22px 16px;background:#fff}
.page-body h2{font-size:18px;margin:18px 0 8px;color:#222}
.page-body p{font-size:14px;color:#333;margin-bottom:12px}
.page-body ul{margin:0 0 12px 20px}
.page-body li{font-size:14px;margin-bottom:6px}

/* blog */
.blog-grid{display:grid;gap:16px}
.blog-card{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.blog-card .bimg{height:130px;background:linear-gradient(135deg,#4a0d0d,#e8736a);
  display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:18px;text-align:center;padding:10px}
.blog-card .bbody{padding:12px 14px}
.blog-card h3{font-size:16px;margin-bottom:6px}
.blog-card p{font-size:13px;color:#666;margin-bottom:10px}
.blog-card .read{color:var(--coral-dark);font-weight:600;font-size:13px}

@media(max-width:430px){
  .wrap{box-shadow:none}
}
