/* ===== Paribook247 clone — mobile app UI (matches live site) ===== */
:root{
  --mag:#6e1550;          /* header magenta */
  --bg-top:#6e1550;
  --bg-mid:#4a1063;
  --bg-bot:#380a54;
  --gold-1:#ffe15a;
  --gold-2:#f3b70b;
  --gold-text:#3a0e00;
  --cyan:#16bcda;
  --back:#b2d9ff;
  --lay:#ffc3dc;
  --red:#e21b3c;
  --nav-bg:#f0e5ee;
  --nav-h:62px;
  --top-h:56px;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
button{font-family:inherit;cursor:pointer;border:none;background:none}
body.mob-app{
  font-family:'Roboto','Helvetica Neue',sans-serif;
  background:#17121a;color:#fff;font-size:14px;
  min-height:100vh;display:flex;justify-content:center;
}

/* phone frame */
.phone{
  width:100%;max-width:440px;min-height:100vh;position:relative;
  display:flex;flex-direction:column;overflow:hidden;
  background:linear-gradient(180deg,var(--bg-top) 0%,var(--bg-mid) 46%,var(--bg-bot) 100%);
  background-attachment:local;
}
@media(min-width:480px){
  body.mob-app{align-items:center;padding:18px 0}
  .phone{
    min-height:auto;height:900px;max-height:94vh;border-radius:30px;
    box-shadow:0 30px 80px rgba(0,0,0,.6);border:9px solid #0b0b0d;
  }
}

/* ===== TOP HEADER ===== */
.mob-topbar{
  height:var(--top-h);flex:none;z-index:20;
  display:flex;align-items:center;gap:10px;padding:0 12px;
  background:var(--mag);
  box-shadow:0 2px 10px rgba(0,0,0,.3);
}
.sb-menu{
  width:40px;height:40px;flex:none;border-radius:50%;background:#fff;
  display:grid;place-items:center;
}
.sb-menu img{width:20px;height:20px}
.mob-logo{margin-right:auto;display:flex;align-items:center;padding-left:2px}
.mob-logo img{height:34px;width:auto}
.mob-actions{display:flex;align-items:center;gap:8px}
.pill{padding:9px 18px;border-radius:9px;font-size:14px;font-weight:700;white-space:nowrap;line-height:1}
.pill-gold{
  background:linear-gradient(180deg,var(--gold-1),var(--gold-2));
  color:var(--gold-text);box-shadow:0 2px 6px rgba(0,0,0,.25);
}
.pill-gold:active{transform:translateY(1px)}

/* ===== SCROLL AREA ===== */
.mob-scroll{
  flex:1;overflow-y:auto;overflow-x:hidden;
  padding:12px 0 calc(var(--nav-h) + 16px);
  -webkit-overflow-scrolling:touch;
}

/* banners — two-up horizontal scroll */
.mob-banners{
  display:flex;gap:10px;overflow-x:auto;padding:0 12px 2px;
  scroll-snap-type:x mandatory;scrollbar-width:none;
}
.mob-banners::-webkit-scrollbar{display:none}
.banner-card{
  flex:0 0 calc(50% - 5px);scroll-snap-align:start;
  border-radius:14px;overflow:hidden;box-shadow:0 4px 14px rgba(0,0,0,.3);
  background:#2a0a3d;
}
.banner-card img{width:100%;height:100%;object-fit:cover;aspect-ratio:804/718}

/* section heading — white italic + gold underline */
.mob-section{margin-top:18px}
.mob-sec-title{
  padding:0 14px;color:#fff;font-style:italic;font-weight:900;
  font-size:22px;letter-spacing:.5px;position:relative;
}
.mob-sec-title::after{
  content:"";display:block;width:74px;height:4px;border-radius:3px;
  background:linear-gradient(90deg,var(--gold-1),var(--gold-2));margin:7px 0 0 2px;
}

/* ===== MATCH CARDS ===== */
.match-scroller{
  display:flex;gap:12px;overflow-x:auto;padding:14px 14px 4px;
  scroll-snap-type:x mandatory;scrollbar-width:none;
}
.match-scroller::-webkit-scrollbar{display:none}
.top-match-card{
  flex:0 0 88%;max-width:340px;scroll-snap-align:start;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;padding:14px;
  backdrop-filter:blur(2px);
}
.tmc-top{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.tmc-sport{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:800;letter-spacing:.5px}
.tmc-sport .sport-ic{
  width:30px;height:30px;flex:none;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(135deg,#7a1550,#c21a6a);
}
.tmc-sport .sport-ic svg{width:18px;height:18px;color:#fff}
.tmc-badges{display:flex;gap:6px;margin-left:auto}
.tmc-badges b{
  width:30px;height:30px;flex:none;border-radius:50%;
  display:grid;place-items:center;font-size:11px;font-weight:800;
  background:linear-gradient(180deg,var(--gold-1),var(--gold-2));color:var(--gold-text);
}

.tmc-league{font-size:13.5px;color:#e9d7e6;margin-bottom:5px}
.tmc-teams-row{display:flex;align-items:flex-start;gap:8px}
.tmc-teams{flex:1;font-size:16px;font-weight:800;line-height:1.3;color:#fff}
.tmc-teams .vs{color:#c9a9c2;font-weight:400;font-size:13px;margin:0 4px}
.live-pill{
  flex:none;display:inline-flex;align-items:center;gap:3px;
  background:var(--red);color:#fff;font-size:10px;font-weight:800;
  padding:3px 8px;border-radius:5px;letter-spacing:.5px;position:relative;
}
.live-pill::after{
  content:"";position:absolute;top:-3px;right:-4px;width:8px;height:8px;
  border:2px solid var(--red);border-left-color:transparent;border-bottom-color:transparent;
  border-radius:50%;
}
.tmc-time{font-size:12.5px;color:#c9a9c2;margin-top:6px}

.tmc-odds{display:flex;gap:8px;margin-top:12px}
.odd-pair{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:5px;min-width:0}
.odd-cell{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  border-radius:9px;padding:7px 2px;min-height:44px;
}
.odd-cell.back{background:var(--back)}
.odd-cell.lay{background:var(--lay)}
.odd-cell .price{font-weight:800;font-size:14px;color:#0d1b2a}
.odd-cell .size{font-size:9.5px;color:#3f5064;margin-top:1px}
.odd-cell.locked{background:rgba(255,255,255,.13);color:rgba(255,255,255,.55)}
.odd-cell.locked svg{width:16px;height:16px}

/* ===== CASINO ROWS ===== */
.game-row{margin-top:22px}
.game-row .mob-sec-title{font-size:21px}
.gc-scroller{display:flex;gap:12px;overflow-x:auto;padding:14px 14px 4px;scrollbar-width:none;scroll-snap-type:x mandatory}
.gc-scroller::-webkit-scrollbar{display:none}
/* portrait game thumbnails (3-up) — match source 336x440 so nothing crops */
.gc-card{
  flex:0 0 30%;max-width:132px;scroll-snap-align:start;
  aspect-ratio:336/440;border-radius:12px;overflow:hidden;position:relative;
  background:#2a0a3d;box-shadow:0 4px 12px rgba(0,0,0,.3);
}
.gc-card img{width:100%;height:100%;object-fit:cover;display:block}
/* wide animated section banners (Fantasy: FANTA/MATKA) — source 954x500, 2-up */
.gc-card.wide{flex:0 0 47%;max-width:none;aspect-ratio:954/500}
.gc-card .g-tag{position:absolute;top:7px;left:7px;background:var(--red);color:#fff;font-size:9px;font-weight:800;padding:2px 7px;border-radius:5px;z-index:1}

/* lobby grid (portrait 3-col) */
.casino-lobby{padding:14px}
.lobby-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}
.lobby-card{
  aspect-ratio:336/440;border-radius:12px;overflow:hidden;position:relative;
  background:#2a0a3d;box-shadow:0 4px 10px rgba(0,0,0,.28);
}
.lobby-card img{width:100%;height:100%;object-fit:cover;display:block}

/* footer */
.mob-footer{padding:22px 16px 10px;text-align:center}
.foot-copy{font-size:11.5px;color:#d8c4d4;line-height:1.7}
.foot-rules{font-size:10.5px;color:#b79fb3;margin-top:6px}

/* ===== FLOATING MINI-GAMES DICE (uv_games.gif) ===== */
.float-games{
  position:absolute;left:10px;bottom:calc(var(--nav-h) + 12px);z-index:25;
  width:62px;height:62px;animation:floaty 2.6s ease-in-out infinite;
}
.float-games img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 10px rgba(0,0,0,.55))}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

/* ===== FLOATING SUPPORT ===== */
.float-support{
  position:absolute;right:8px;bottom:calc(var(--nav-h) + 12px);z-index:25;
  display:flex;align-items:center;gap:4px;
}
.fs-collapse{
  width:26px;height:34px;border-radius:8px;background:rgba(40,10,55,.75);
  color:#fff;font-size:18px;line-height:1;border:1px solid rgba(255,255,255,.15);
}
.fs-badge{position:relative;width:62px;height:62px;display:grid;place-items:center}
.fs-ring{
  position:absolute;inset:0;border-radius:50%;
  background:conic-gradient(#12b76a,#0e9f5b,#12b76a);
  font-size:0;box-shadow:0 4px 12px rgba(0,0,0,.4);
  animation:spin 8s linear infinite;
  -webkit-mask:radial-gradient(circle 22px at center,transparent 21px,#000 22px);
          mask:radial-gradient(circle 22px at center,transparent 21px,#000 22px);
}
@keyframes spin{to{transform:rotate(360deg)}}
.fs-core{
  position:relative;z-index:1;width:44px;height:44px;border-radius:50%;
  background:#12b76a;display:grid;place-items:center;line-height:1;color:#fff;
}
.fs-core b{position:absolute;bottom:5px;font-size:8px;font-weight:800}
.fs-core{font-size:17px}

/* ===== BOTTOM NAV (dark magenta→purple bar, matches live site) ===== */
.mob-bottom-nav{
  height:var(--nav-h);flex:none;z-index:20;
  display:flex;align-items:stretch;
  background:linear-gradient(180deg,#5c1451,#340a49);
  box-shadow:0 -2px 12px rgba(0,0,0,.35);
  border-top:1px solid rgba(255,255,255,.12);
}
.nav-item{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  color:#e6d3e4;font-size:11px;font-weight:600;
}
.nav-item .ni{width:24px;height:24px;display:grid;place-items:center}
.nav-item .ni svg{width:23px;height:23px}
.nav-item.active{color:var(--cyan)}
.nav-item.active .ni{color:var(--cyan)}

/* ===== SIDE DRAWER ===== */
.drawer{position:absolute;inset:0;z-index:40;pointer-events:none}
.drawer.open{pointer-events:auto}
.drawer-scrim{position:absolute;inset:0;background:rgba(0,0,0,.5);opacity:0;transition:.25s}
.drawer.open .drawer-scrim{opacity:1}
.drawer-panel{
  position:absolute;top:0;left:0;bottom:0;width:78%;max-width:300px;
  background:#fff;color:#333;transform:translateX(-100%);transition:transform .25s ease;
  display:flex;flex-direction:column;overflow-y:auto;box-shadow:2px 0 20px rgba(0,0,0,.35);
}
.drawer.open .drawer-panel{transform:translateX(0)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:14px;background:var(--mag)}
.drawer-head img{height:34px}
.drawer-close{color:#fff;font-size:26px;line-height:1;width:30px;height:30px}
.drawer-auth{display:flex;gap:8px;padding:12px 14px;border-bottom:1px solid #eee}
.drawer-auth .pill{flex:1;text-align:center}
.drawer-title{background:#4a1063;color:#fff;padding:8px 14px;font-size:12px;font-weight:700}
.drawer-list{list-style:none}
.drawer-list li{display:flex;align-items:center;gap:9px;padding:12px 14px;border-bottom:1px solid #eee;font-size:13px;color:#333}
.drawer-list li:active{background:#f7e9f2}
.drawer-list li .s-ico{width:20px;height:20px;display:grid;place-items:center;color:#c21a6a}
.drawer-list li .s-ico svg{width:17px;height:17px}
.drawer-list li .live-dot{margin-left:auto;width:6px;height:6px;border-radius:50%;background:#25d366}
