/* ===== Design tokens ===== */
:root{
  --bg:#161a20;          /* page + header */
  --surface:#1e2128;     /* category bar, footer */
  --card:#22262e;        /* tiles */
  --card-2:#282d34;      /* secondary buttons */
  --nav:#353a41;         /* bottom nav */
  --login-1:#3d97da;--login-2:#2263a2;
  --reg-1:#4bd83f;--reg-2:#17991a;
  --line:#2c323b;
  --text:#ffffff;
  --muted:#9aa3ae;
  --primary:#1a9fd7;     
  --primary-2:#0088d1;
  --hot:#e3123a;
  --radius:10px;
  --gutter:12px;
  --header-h:58px;
  --nav-h:65px;
  --safe-b:env(safe-area-inset-bottom,0px);
  /* Bar is 65px; on phones with a home bar (iPhone) it is 54px of icons + the safe area, never less than 65px */
  --nav-total:max(var(--nav-h),calc(54px + var(--safe-b)));
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:#07090b;color:var(--text);font-family:Montserrat,Roboto,"Helvetica Neue",Arial,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}

/* Whole app is one fluid column; caps at 480px on tablets/desktop */
.app{position:relative;width:100%;max-width:480px;margin:0 auto;min-height:100vh;background:var(--bg);
  padding-bottom:var(--nav-total);overflow:hidden}

/* ===== Header ===== */
.header{position:sticky;top:0;z-index:50;height:calc(var(--header-h) + 2px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  padding:0 16px 0 19px;background:var(--bg);border-bottom:2px solid #1e2128}
.menu-btn{justify-self:start;display:block}
.menu-btn{display:grid;place-items:center;width:22px;height:22px;color:#00aeef}
.menu-btn svg{display:block}
.logo{justify-self:center;display:flex;align-items:center}
.logo img{display:block;width:75px;height:auto}
.logo-text{font-weight:800;font-style:italic;font-size:26px;letter-spacing:.5px;color:var(--primary)}
.logo-text b{color:#fff}
.lang-btn{justify-self:end;width:26px;height:26px;background:url(../../assets/img/fe1747f55139.webp) center/contain no-repeat}

.page-title{justify-self:center;margin:0;font-size:15px;font-weight:700;line-height:36px;color:#00aeef;text-transform:uppercase;white-space:nowrap}
/* ===== Bottom nav (fixed, respects iPhone home bar + Android gesture bar) ===== */
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;width:100%;max-width:480px;margin:0 auto;
  display:grid;grid-template-columns:repeat(5,1fr);height:var(--nav-total);padding-bottom:var(--safe-b);
  background:#353a41}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:10px;line-height:12px;color:#fff;min-width:0}
.bottom-nav svg{display:block;width:21.33px;height:21.33px;color:#fff}
.bottom-nav span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Active tab: only the icon turns blue, the label stays white */
.bottom-nav a.is-active svg{color:#00aeef}
/* Rule [20]: selected icon = blue gradient #71D0EE -> #00AEEF (left to right) */
.bottom-nav a.is-active svg path{fill:url(#activeGrad)}

/* ===== Side menu (copied from the live site's #main-nav) ===== */
.side-menu{position:fixed;inset:0;z-index:1000;width:100%;max-width:480px;margin:0 auto;background:rgba(0,0,0,.5);overflow-y:auto}
.side-menu[hidden]{display:none}
.side-panel{width:70%;min-height:100%;background:#2e3033}
.side-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;padding:10px;background:#1a6585}
.side-logo{display:block;width:152px;height:auto;padding-left:11.2px}
.side-close{display:block;width:24px;height:24px}
.side-close img{display:block;width:24px;height:24px}
.side-list{margin:0;padding:0;list-style:none}
.side-link{display:flex;padding:12px 16px 12px 15px;border-bottom:1px solid #373a3f;font-size:13px;font-weight:500;line-height:19.5px;color:#fff}
.side-link span{display:block;padding-left:15px;text-transform:uppercase}
.side-ic{flex:0 0 auto;display:block;width:27.2px;height:24px;background:center/100% 100% no-repeat}
.side-ic.is-flag{height:27.2px}
.side-win{display:inline-block;width:12.8px;height:11.2px;margin-left:4.8px;background:url(../../assets/img/42034f5c73cd.gif) center/100% 100% no-repeat}
body.menu-open{overflow:hidden}
/* Logged-in side menu: username + level replace the logo, LOGOUT is the last item */
.side-top{height:60px}
.side-user{margin-left:14.4px}
.side-user-name{font-size:16px;font-weight:700;line-height:16px;text-transform:uppercase}
.side-user-level{font-size:8px;line-height:24px;text-transform:uppercase}
.side-list li:last-child .side-link{border-bottom:0}
.hdr-btn{display:grid;place-items:center;width:22px;height:22px;color:#00aeef}
/* ===== Provider game list — NEW DESIGN (Max, 2026-11-06). Class names follow the live site /slots/pragmatic-play ===== */
:root{--active-gradient:linear-gradient(90deg,#71D0EE,#00AEEF)}
/* Row 1: brand dropdown + search */
.section-header-slot-ply{display:flex;gap:7px;margin:16px 15px 16px 16px}
.dropdown-games-wrap{position:relative;flex:0 0 auto;width:calc((100% - 7px) * .607)}
.dropdown-game-slc{display:flex;align-items:center;width:100%;height:38px;padding:0 16px 0 22px;border-radius:6px;background:#282d34;font-size:14px;line-height:18px;color:#fff;text-align:left}
.dropdown-game-slc .provider-ic{flex:0 0 20px;width:20px;height:20px;object-fit:contain;margin-right:18px}
.dropdown-game-slc .dropdown-content{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dropdown-game-slc .dd-arrow{flex:0 0 12px;color:#c4c7cc;transition:transform .2s}
.dropdown-game-slc[aria-expanded="true"] .dd-arrow{transform:rotate(180deg)}
.dropdown-games-wrap .dropdown-menu{display:none;position:absolute;top:44px;left:0;z-index:40;width:calc(100% * 1.647 + 7px);max-height:420px;overflow-y:auto;padding:0 10px;border:1px solid #3a404a;border-radius:6px;background:#20262f;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.dropdown-games-wrap .dropdown-menu.show{display:block}
.wrap-slot{display:flex;flex-direction:column}
.wrap-drop{margin:8px 0;border-radius:6px}
.wrap-drop.active{background:#282d34}
.wrap-drop.active .dropdown-item span{color:#fff;font-weight:600}
.wrap-drop .dropdown-item{display:flex;align-items:center;gap:12px;padding:6px 10px;font-size:13px;line-height:18px;color:#b2b2bd}
.wrap-drop img{width:30px;height:26px;object-fit:contain}
.search-with-icon{flex:1;min-width:0;position:relative;display:flex;align-items:center;height:38px;padding:0 36px 0 11px;border-radius:6px;background:#282d34}
.search-slot{width:100%;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:16px;color:#fff}
.search-slot::placeholder{color:#828293}
.search-with-icon .search-ic{position:absolute;right:11px;top:50%;transform:translateY(-50%);color:#c4c7cc}
/* Row 2: tabs */
.selection-bar-wrap{display:flex;align-items:center;height:40px;margin-bottom:12px}
.quick-tabs{flex:0 0 auto;display:flex;align-items:center;gap:6px;height:40px;padding:0 8px 0 8px;border-radius:0 20px 20px 0;background:#20262f}
.quick-tab{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#161a20}
.quick-tab.active{background:#232a45}
.cat-tabs-wrap{position:relative;flex:1;min-width:0;height:40px}
.cat-tabs-wrap::before,.cat-tabs-wrap::after{content:"";position:absolute;top:0;bottom:0;width:32px;pointer-events:none;opacity:0;transition:opacity .2s;z-index:1}
.cat-tabs-wrap::before{left:0;background:linear-gradient(90deg,#161a20,rgba(22,26,32,0))}
.cat-tabs-wrap::after{right:0;background:linear-gradient(270deg,#161a20,rgba(22,26,32,0))}
.cat-tabs-wrap.fade-left::before,.cat-tabs-wrap.fade-right::after{opacity:1}
.cat-tabs.dragging{cursor:grabbing;user-select:none}
.cat-tabs{position:relative;height:40px;display:flex;gap:22px;padding:0 16px 0 12px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.cat-tabs::-webkit-scrollbar{display:none}
.cat-tabs .sub-selection{flex:0 0 auto;display:flex;align-items:center;gap:8px;height:40px;font-size:14px;line-height:18px;color:#828293;white-space:nowrap}
.cat-tabs .sub-selection.active{color:#fff}
.sub-selection svg{display:block;flex:0 0 auto}
/* Icon colours. Not selected = grey. Selected = blue gradient #71D0EE -> #00AEEF (rule [20]) */
.sub-selection .ic-line{stroke:#828293;fill:none}
.sub-selection .ic-fill{fill:#828293}
.quick-tab .ic-fill{fill:#757490}
.sub-selection .ic-text{fill:#828293}
.sub-selection .ic-on{display:none}
.sub-selection.active .ic-line{stroke:url(#activeGrad);fill:url(#activeGrad)}
.sub-selection.active .ic-fill{fill:url(#activeGrad)}
.sub-selection.active .ic-off{display:none}
.sub-selection.active .ic-on{display:inline}
.sub-selection.active .ic-text{fill:#161a20}
/* Game grid: 3 per row */
.games-show-all{padding:0 13px 30px}
.game-options-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:0}
.games-imgs{padding:10px 5px 0;text-align:center}
.games-imgs a{display:block}
.games-imgs img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:6px;background:#22262e}
.slot-name{margin-top:8px;font-size:11px;line-height:14px;color:#d7d7d9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.text-loading{grid-column:1/-1;list-style:none;padding:48px 20px;text-align:center;color:#828293;font-size:13px;line-height:19px}
/* ===== Game iframe pop-up — new design (Max, 2026-11-06): 393x60 bar + iframe below (393x792 on a 393x852 screen) ===== */
.slot-frame-modal{position:fixed;top:0;left:0;right:0;z-index:999;width:100%;max-width:480px;height:100%;margin:0 auto;padding-top:60px;background:#161a20;display:none;opacity:0;transform:scale(.97);
  transition:opacity .28s cubic-bezier(.4,0,.2,1),transform .28s cubic-bezier(.4,0,.2,1)}
.slot-frame-modal.is-open{opacity:1;transform:scale(1)}
.slot-frame-modal .back-slot-frame{position:absolute;top:0;left:0;width:100%;height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#161a20}
.slot-frame-modal .frame-logo{display:block;width:72px;height:auto}
.frame-actions{display:flex;gap:16px}
.frame-btn{display:grid;place-items:center;width:28px;height:28px;border-radius:5px;background:#282d34}
.frame-btn svg{display:block}
.btn-fav svg{width:16px;height:auto}
/* One heart shape, colour set in CSS: grey = not saved, blue gradient = saved */
.btn-fav .fav-heart{fill:#757490;transition:fill .15s}
.btn-fav.is-fav .fav-heart{fill:url(#favGrad)}
.slot-frame-modal #slotFrame{display:block;width:100%;height:100%;border:0;opacity:0;transition:opacity .2s cubic-bezier(.4,0,.2,1)}
.slot-frame-modal.is-open #slotFrame{opacity:1}
body.frame-open{overflow:hidden}
/* "Added to favourite" toast (Max design: Game Lobby_Add to Fav_Pop Up) */
.fav-toast{position:absolute;top:72px;left:50%;z-index:2;display:flex;align-items:center;gap:8px;height:43px;padding:0 16px;border-radius:6px;white-space:nowrap;
  background:linear-gradient(90deg,#2f353d,#161a20);font-size:13px;line-height:18px;color:#fff;pointer-events:none;
  opacity:0;transform:translate(-50%,-6px);transition:opacity .2s ease,transform .2s ease}
.fav-toast.is-show{opacity:1;transform:translate(-50%,0)}
.fav-toast svg{flex:0 0 20px;display:block}
/* Full screen mode: bar hidden, game uses the whole screen; a small floating button brings the bar back */
.slot-frame-modal.is-full{padding-top:0}
.slot-frame-modal.is-full .back-slot-frame{display:none}
.btn-exit-full{display:none;position:absolute;top:calc(16px + env(safe-area-inset-top,0px));right:16px;z-index:3;width:28px;height:28px;place-items:center;border-radius:5px;background:rgba(22,26,32,.6)}
.slot-frame-modal.is-full .btn-exit-full{display:grid}
.slot-frame-modal.is-full .fav-toast{top:56px}


/* ===== Grey inactive icons (Max 2026-11-13) ===== */
.cat:not(.is-active){color:#b2b2bd}
.cat:not(.is-active) svg.ic,.cat:not(.is-active) svg.ic *{color:#b2b2bd!important;fill:#b2b2bd!important}
.cat:not(.is-active) i.ic{filter:brightness(.7)}
.bottom-nav a:not(.is-active),.bottom-nav a:not(.is-active) svg{color:#b2b2bd}

/* ===== Bottom nav dark (Max 2026-11-13) ===== */
.bottom-nav{background:#161a20!important;background-image:none!important;border-top:1px solid #1e232b}
