/**
 * ╔══════════════════════════════════════════════════════════════╗
 * ║           VEGASLOT CASINO — MOBILE STYLESHEET               ║
 * ║  Styles for mobile.php — portrait phone layout.             ║
 * ╚══════════════════════════════════════════════════════════════╝
 */

/* ─── MOBILE BODY / ROOT ─────────────────────────────────────── */
.mobile-body {
  overflow: hidden;
  background: #070b14;
}

#m-app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(90, 110, 220, 0.28) 0%, transparent 70%),
radial-gradient(ellipse 50% 35% at 50% -5%, rgba(200, 220, 255, 0.13) 0%, transparent 60%),
linear-gradient(160deg, transparent 20%, rgba(60, 80, 180, 0.06) 50%, transparent 80%),
linear-gradient(200deg, transparent 20%, rgba(60, 80, 180, 0.06) 50%, transparent 80%),
#070b14;
}

/* ─── HEADER ──────────────────────────────────────────────────── */
#m-header {
  width: 100%;
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 20;
  background-image: url('../images/backgrounds/header-bg.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#m-site-title {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  background: linear-gradient(180deg, #fff 0%, #e0e0e0 20%, #b8b8b8 50%, #888 75%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.9));
}



#m-fullscreen-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
#m-fullscreen-btn:hover { opacity: 1; }
#m-fullscreen-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: transform 0.2s;
}
#m-fullscreen-btn.active img { transform: rotate(45deg); }

/* ─── GAME AREA ───────────────────────────────────────────────── */
#m-game-area {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

/* Page counter — bottom-left */
#m-page-counter {
  position: absolute;
  bottom: 8px;
  left: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  pointer-events: none;
  z-index: 5;
}

/* ─── MOBILE SLIDE VIEWPORT ───────────────────────────────────── */
#m-slide-viewport {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Each page: 2-1-2 oval card layout */
.m-slide-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 24px;
}

/* Slide animations (same as desktop) */
.m-slide-page.enter-right { animation: slideInRight 0.35s cubic-bezier(.25,.46,.45,.94) forwards; }
.m-slide-page.enter-left  { animation: slideInLeft  0.35s cubic-bezier(.25,.46,.45,.94) forwards; }
.m-slide-page.exit-right  { animation: slideOutRight 0.35s cubic-bezier(.25,.46,.45,.94) forwards; }
.m-slide-page.exit-left   { animation: slideOutLeft  0.35s cubic-bezier(.25,.46,.45,.94) forwards; }

/* Card rows */
.m-card-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.m-card-row-top    { /* 2 cards */ }
.m-card-row-mid    { /* 1 card centered */ }
.m-card-row-bot    { /* 2 cards */ }

/* ─── MOBILE GAME CARD (OVAL) ─────────────────────────────────── */
.m-game-card {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  /* Oval shape: width drives height via aspect-ratio */
  width: 44vw;
  max-width: 210px;
  aspect-ratio: 320 / 216;
  transition: transform 0.2s;
}
/* Middle card is slightly larger */
.m-card-row-mid .m-game-card {
  width: 48vw;
  max-width: 230px;
}
.m-game-card:active { transform: scale(0.96); }

/* Oval clip & ring frame */
.m-card-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: ellipse(48% 46% at 50% 50%);
  border-radius: 50%;
}
.m-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: opacity 0.3s;
}
.m-game-card:active .m-card-img-wrap img { opacity: 1; }

/* Dark gradient overlay at bottom of card */
.m-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 45%);
  clip-path: ellipse(48% 46% at 50% 50%);
}

/* Oval ring frame (using ring.webp as background) */
.m-card-ring {
  position: absolute;
  inset: -3%;
  background-image: url('../images/backgrounds/ring.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 2;
  display:none;
}

/* LIVE badge */
.m-card-live {
  position: absolute;
  top: 8%;
  left: 14%;
  background: #cc2222;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  z-index: 4;
}

/* Info button (ⓘ) — top-right area of card */
.m-card-info-btn {
  position: absolute;
  z-index: 5;
  right: 8%;
  top: 28%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(30, 40, 80, 0.75);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  line-height: 1;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  display:none;
}
.m-card-info-btn:active { background: rgba(60,80,160,0.9); }

/* Loading spinner for slider */
.m-slider-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}
.m-slider-loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── BOTTOM NAV ──────────────────────────────────────────────── */
#m-bottom-nav {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
   background-image:url('../images/backgrounds/mobile-footer-bg1-with-elements.webp');
   background-size:100% 100%;
  z-index: 50;
  border-top: 1px solid rgba(255,255,255,0.06);
  display:none;
}

#bottom-nav{
display:grid;
}


@media (max-width: 480px) {
	#m-bottom-nav { display:block; }
	#bottom-nav,.anim-toggle-wrap{ display:none; }
	#game-area{padding-bottom:0px;}
	#header {height:40px;}
	#nav-right,#nav-left { display: none; }
	
	
	.slide-page {
position: relative;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 6px;
padding: 10px 0 24px;
}

.card-row {
display: flex;
justify-content: center;
gap: 10px;
width: 100%;
}

.card-row.top-row {gap: 5px;}

.game-card {
position: relative;
flex-shrink: 0;
cursor: pointer;
width: 50vw;
max-width: 210px;
aspect-ratio: 320 / 216;
transition: transform 0.2s;
}

.card-img-wrap {
position: absolute;
inset: 0;
overflow: hidden;
clip-path: ellipse(50% 50% at 50% 50%);
border-radius: 50%;
/*background-color: yellow;*/
}


.card-row.bottom-row{margin-top: 40%;}

.card-row.bottom-row .game-card:nth-child(2){
	position: absolute;
top: 35%;
}
}




/* Tablet */
@media (min-width: 468px) and (max-width: 891px) {
   .circle-btn.aboutusbtn,.circle-btn.telegrambtn{display:none;}
 .slide-page{height:fit-content;gap:0;}
	#header {height:50px;}
	
	
	.game-card {
position: relative;
flex-shrink: 0;
cursor: pointer;
width: clamp(150px, 18vw, 380px);
aspect-ratio: 320 / 216;
background-repeat: no-repeat;
transition: transform 0.2s;
}

#slider-footer{width:fit-content;position: absolute;
bottom: 70px;}

#slider-footer .anim-toggle-wrap{display:none;}

#slider-footer #page-counter{font-size:0.7rem;}

.card-row.bottom-row{ 
position: absolute;
margin-top: 20%;
gap: clamp(4px, 6.5vw, 48px);
}

.balance-label{
	font-size: 15px;
padding-left: 5px;
}

.balance-value{
	font-size: 15px;
}

.balance-bonus-label{
	font-size: 12px;
padding-left: 5px;
}

.balance-bonus{
	font-size: 12px;
}

.nav-group-right {margin-top:0;}
.nav-group-left {margin-top:0;}

#balance-display{margin:0; }
.nav-group-center { gap:5px; }

}




.m-nav-row {
  display: flex;
  align-items: center;
  width: 100%;
}

/* ── Row 1: Categories | Providers | ◄ ► ─────────────────────── */
#m-nav-row1 {
  height: 48px;
  /*background: #242936;*/
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 10px;
  justify-content: space-between;
}

.m-nav-row1-left {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 62%;
}

.m-nav-row1-left .square-btn,.m-nav-row1-right .square-btn {
	
display: flex;
 flex-direction: initial;
align-items: center;
justify-content: center;
gap: 2px;
border-radius: 12px;
border: 1px solid rgba(255,255,255,0.1);
background: linear-gradient(180deg, #1e2d45 0%, #0d1624 60%, #060e1a 100%);
box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 6px rgba(0,0,0,0.5);
color: rgba(255,255,255,0.8);
transition: color 0.15s, background 0.15s;
/*width: clamp(58px, 18vw, 50%);
height: clamp(40px, 4.5vw, 58px);*/
height:35px;
width:48%;
margin-top:5px;
flex-shrink: 0;
	
}

.m-nav-row1-right {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 36.5%;
}

/* Pill buttons: Categories / Providers */
.m-nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.m-nav-pill:active { background: rgba(255,255,255,0.12); color: #fff; }
.m-nav-pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Arrow navigation buttons */
.m-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  transition: background 0.15s, color 0.15s;
}
.m-arrow-btn:active { background: rgba(255,255,255,0.18); color: #fff; }
.m-arrow-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Row 2: Balance | Casino | Slots ──────────────────────────── */
#m-nav-row2 {
  height: 52px;
  /*background: #1c2130;*/
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 12px;
  justify-content: space-between;
}

/* Balance */
#m-balance-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 130px;
}
.m-balance-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.m-balance-label {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.m-balance-value {
  font-size: 13px;
  font-weight: 700;
  color: #4dd9e8;
}
.m-balance-bot {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.m-bonus-label {
  font-size: 11px;
  font-weight: 600;
  color: #f0c040;
  font-style: italic;
}
.m-bonus-value {
  font-size: 11px;
  font-weight: 700;
  color: #f0c040;
}

/* Section tabs: Casino / Slots */
#m-section-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
  width:49.5%;
}

.m-section-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
  position: relative;
  min-width: 70px;
}

#m-section-tabs .section-tab{
display: flex;
flex-direction: initial;
align-items: center;
justify-content: center;
gap: 4px;
border-radius: 12px;
border: 1px solid rgba(255,255,255,0.1);
background: linear-gradient(180deg, #1e2d45 0%, #0d1624 60%, #060e1a 100%);
box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 6px rgba(0,0,0,0.5);
color: rgba(255,255,255,0.8);
transition: all 0.2s;
/* width: clamp(60px, 7vw, 88px); */
height: clamp(40px, 4.5vw, 58px);
width: 50%;
flex-shrink: 0;
position: relative;
	
}

#m-section-tabs .section-tab.active {
  background: #0a1220;
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  box
}

.m-section-tab svg {
  width: 16px;
  height: 16px;
}
.m-tab-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}
.m-section-tab.active {
  color: #fff;
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}
.m-section-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

/* ── Row 3: Settings | ENTRY | Chat ───────────────────────────── */
#m-nav-row3 {
  height: 60px;
  /*background: #1a1f2e;*/
  padding: 0 14px;
  justify-content: space-between;
  align-items: center;
}

/* Circle buttons (Settings / Chat) */
.m-circle-btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}
.m-circle-btn:active { opacity: 0.7; }

.m-circle-icon {
  width: 42px;
  height: 42px;
  background-image: url('../images/buttons/circle-btn.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
}
.m-circle-icon svg {
  width: 16px;
  height: 16px;
  fill:#fff;
}

/* ENTRY button — wide green */
.m-entry-btn {
  flex: 1;
  height: 46px;
  margin: 0 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-image: url('../images/buttons/account-btn.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #fff;
  transition: filter 0.15s;
  border-radius: 8px;
}
.m-entry-btn:active { filter: brightness(1.2); }
.m-entry-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.m-entry-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── POPUP OVERLAY (mobile override) ────────────────────────── */
/* Override the desktop top/bottom offsets for mobile layout */
.mobile-body #popup-overlay {
  top:    56px;           /* m-header height */
  bottom: calc(48px + 52px + 60px);  /* 3 nav rows */
}

/* ─── CARD POPUP OVERLAY (mobile) ────────────────────────────── */
/* Reuse desktop card-popup styles from style.css — no overrides needed */

/* ─── DRAG / SWIPE CURSOR ─────────────────────────────────────── */
#m-slide-viewport { cursor: default; }
#m-slide-viewport.grabbing { cursor: grabbing; }


#m-nav-left svg{ height:30px;width:30px;}
#m-nav-right svg{ height:30px;width:30px;}