*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  padding-top: env(safe-area-inset-top);
  min-height: 75vh;
  margin: 0;
  overflow-x: hidden;
}
body {
  /*padding-bottom: 10px;*/
  margin-bottom:-20px;
}

/* Main layout container */
.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex-grow: 1;
    min-height: 75vh;
    box-sizing: border-box;
}
	/* Main content */
	.content {
	    flex: 3;
	    width: 100%;
	    padding: 1rem;
	    background-color: #f4f4f4;
	    overflow: hidden;
	    position: relative;
	    display: flex;
	    flex-direction: column;
	    align-items: center;
	    flex-grow: 1;
  		overflow-y: auto;
	}
	
	/* Sidebar */
	aside {
	    flex: 1;
	    padding: 1rem;
	    background-color: #ddd;
	    min-height: calc(85vh - 4rem);
	}
	
	
	/* Arrange `myprofile` and `loader-content` side by side on larger screens */
	.profile-container {
	    display: flex;
	    flex-direction: row; /* Side by side layout */
	    justify-content: center;
	    align-items: center;
	    width: 100%;
	    margin-bottom: -2vw;
	}
	
		/* Loader Content - Styled like myprofile */
		.loader-content {
		    display: flex;
		    flex-direction: row; /* Arrange left and right sections side by side */
		    justify-content: space-between;
		    align-items: center;
		    text-align: center;
		    width: 100%;
		    max-width: 800px;
		    height: auto;
		    margin: 0.8rem;
		    padding: 1rem;
		    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
		    border-radius: 8px;
		    background: white;
		}
		
		/* Left side buttons and dropdown */
		.button-section-left {
		    display: flex;
		    flex-direction: column;
		    flex: 1;
		    
		    justify-content: space-between;
  			align-items: center;
  			text-align: center;
  			max-width: 800px;
  			height: auto;
  			margin: 0.2rem;
  			padding: 0.5rem;
  			box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  			border-radius: 8px;
  			background: white;
		}
		
		/* Right side play button */
		.button-section-right {
		    display: flex;
		    flex-direction: column;
		    flex: 0 0 auto;
		    
		    align-items: center;
		    justify-content: center;
			align-items: center;
  			text-align: center;
  			max-width: 800px;
  			height: auto;
  			margin: 0.2rem;
  			padding: 0.5rem;
  			border-radius: 8px;
  			background: white;
  			box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
		}
		
			/* Game Selection Title */
			#form--text {
			    font-size: 1.5rem;
			    font-weight: bold;
			    margin-bottom: 1rem;
			}
			
			/* General Button Styling */
			.clasButton, .freeButton, .blocButton, .teleButton, .creditButton{
			    width: 120px;
			    padding: 5px;
			    font-size: 1rem;
			    font-weight: bold;
			    margin: 3px;
			    border: none;
			    border-radius: 8px;
			    cursor: pointer;
			    transition: all 0.3s ease-in-out;
			    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
			}

			
			/* Individual Button Colors */
			.clasButton {
			    background-color: #4CAF50;
			    color: white;
			}
			
			.freeButton {
			    background-color: #3498db;
			    color: white;
			}
			
			.playButton {
			    background-color: #f39c12;
			    color: white;
				width: 80px;
    			height: 70px;
			}
			
			.blocButton {
			    background-color: #e74c3c;
			    color: white;
			}
			
			.teleButton {
			    background-color: #9b59b6;
			    color: white;
			}
			
			/* Get Credits Button */
			#creditbtn {
			    background-color: #2ecc71;
			    color: white;
			}
			
			/* Hover Effects */
			.loader-content button:hover {
			    transform: scale(1.05);
			    opacity: 0.9;
			}
			
			/* Dropdown Menu */
			.inline {
			    margin-top: 0.5rem;
			}
			
			.slbresult {
			    width: 160px;
			    padding: 10px;
			    font-size: 1rem;
			    border: 2px solid #ccc;
			    border-radius: 8px;
			    text-align: center;
			    background: white;
			    cursor: pointer;
			}
	
	
		/* Profile Section */
		.myprofile {
		    display: flex;
		    flex-direction: row; /* Arrange elements in a row */
		    justify-content: center;
		    align-items: center;
		   
		    /*margin: 0.2vw;
		    padding:0.2vw;*/
	    	margin: 0.2vw;
		    padding: 0.2vw;
		    background: #fff;
			border-radius: 8px;
			box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
		    text-align: center;
		    
		}
			.myprofile-main {
			    width: 100%;
			    display: flex;
			    flex-direction: row;
			    justify-content: center;
			    align-items: center;
			}
			
			.games-award-row {
			    width: 96%;
			    display: flex;
			    flex-direction: column;
			    align-items: center;
			    justify-content: center;
			    margin: 0.3vw 0 0.5vw 0;
			    padding: 0.4vw 0.6vw;
			    background: #fff;
			    border-radius: 8px;
			    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
			}
			
			.games-icons-wrap {
			    display: flex;
			    flex-direction: column;
			    flex-wrap: wrap;
			    justify-content: center;
			    gap: 0.35vw;
			    margin-top: 0.2vw;
			    margin-bottom:0.3vw; /* space for timer */
			}
			.games-wait-timer{
			    font-size:0.9rem;
			    color:#444;
			    font-weight:700;   /* makes it bold */
			    letter-spacing:0.5px;
			    min-height:18px;
			}
			.game-slot.active{
			    color:#1976d2;
			    transform:scale(1.1);
			    filter:brightness(1.2);
			}
			.game-award-icon {
			    font-size: 1.4rem;
			    color: #1976d2;
			    display: inline-flex;
			    align-items: center;
			    justify-content: center;
			    padding: 0.15rem;
			    transition: transform 0.2s ease;
			}

			.game-award-icon:hover {
			    transform: scale(1.2);
			}
			.game-slot{
			    font-size:1.35rem;
			    padding:4px;
			    border-radius:6px;
			    background:#f5f5f5;
			    border:1px solid #e0e0e0;
			}
			
			.game-slot.active{
			    color:#1976d2;
			    transform:scale(1.1);
			    filter:brightness(1.2);
			}
			.game-slot.active{
			    color:#1565c0;
			    background:#e3f2fd;
			    border:1px solid #90caf9;
			}
			.game-slot.inactive{
			    color:#bdbdbd;
			    opacity:0.35;
			}
			.game-slot.active:hover{
			    transform:scale(1.2);
			}
			.pulse{
			    animation:gamePulse .35s ease;
			}
			
			@keyframes gamePulse{
			    0%{transform:scale(1.4)}
			    100%{transform:scale(1)}
			}
			
			@media (max-width: 480px) {
		    .myprofile-main {
		        width: 100%;
		        display: flex;
		        flex-direction: row;
		        justify-content: center;
		        align-items: center;
		    }

		    .games-award-row {
		        width: 25%;
		        margin-top: 0.6vw;
		        margin-bottom: 1.2vw;
		        padding: 1.2vw;
		    }
		
		    .games-icons-wrap {
		        gap: 1.2vw;
		    }
		
		    .game-award-icon {
		        font-size: 1.1rem;
		    }
		}
			/* Left Side - Stars and Points */
			.profile-left {
			    display: flex;
			    flex-direction: column;
			    justify-content: center;
			    align-items: center;
			    gap: 0px;
			    width: 20%;
			    height: 90%;
			    margin: 0.2vw;
			    padding: 0.2vw;
		    	/*padding-right: 1.0vw;
				margin-left: 0vw;
				margin-right: 1.0vw;*/
			}
			
				/* Stars Box */
				/*.outstar {
				    display: flex;
				    flex-direction: column;
				    align-items: center;
				   
				    padding-right: 0.0vw;
				    background: #fff;
				    border-radius: 8px;
				    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
				    width: 90%;
				}*/
				
				.sta {
					transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
		            
					display: grid;
					/*gap: -1.0px; /* Reduced space between stars */
					place-items: center;
					font-weight: 200;
					font-size: 1.8vw;
					margin-top: 1px; 
				}
				.sta.highlighted {
		            color: gold;
		            transform: scale(1.7);
		        }
		
				
				/* Score & Points Box */
				.outinfo {
				    display: flex;
				    flex-direction: column;
				    align-items: center;
				    justify-content: center;
				    font-size: 0.7rem;
				    margin: 0.5vw;
			    	padding: 0.5vw;
				    background: #fff;
				   
				    border-radius: 8px;
				    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
				  
				    height: auto;
				}
				.outimage{
					
				}
				.numlabel {
				    font-weight: bold;
				}
				
				.num {
				    font-size: 1.0rem;
				    color: #d32f2f;
				}
			.proaward{
				display: flex;
			    flex-direction: column;
			    align-items: center;
			    padding: 2.5px;
			    background: #fff;
			    border-radius: 8px;
				width: 80%;
			}
			
				/* Center - Player Image Box */
				.outinfoimg {
				    display: flex;
				    flex-direction: column;
				    align-items: center;
				    background: #fff;
				    border-radius: 8px;
				    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
				    width: 90%;
				    
				}
					
					.avata {
					    width: 150px;
					    height: 140px;
					    border-radius: 20%;
   					    display: block;
					    object-fit: cover;

					}
					
					.avatar-wrapper{
					    position:relative;
					    display:inline-block;
					    cursor: pointer;
						position: relative;
						z-index: 2;
					}
					
					.avatar-tooltip{
					    pointer-events: none;
					    position:absolute;
					    bottom:-24px;
					    left:50%;
					    transform:translateX(-50%);
					    background:#333;
					    color:#fff;
					    font-size:0.75rem;
					    padding:4px 8px;
					    border-radius:4px;
					    white-space:nowrap;
					    opacity:0;
					    pointer-events:none;
					    transition:opacity .2s ease;
					}
					
					.avatar-wrapper:hover .avatar-tooltip{
					    opacity:1;
					}
					.avata{
					  cursor: pointer;
					}
					.avata:hover{
					  cursor: pointer;
					  filter: brightness(0.9);
					}
					.infoimg{
						font-size: 2vw;
						font-weight: 400;
					}
				.outaward{
				    flex-wrap: wrap;
				    display: flex;
				    flex-direction: row; /* Make it vertical */
				    align-items: center;
				    justify-content: center;
				    background: white;
				    border-radius: 8px;
				    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
				    width: 90%;
			    	height: 20%;
				     /* Slimmer to match left side */
				   /* max-width: 100%;
				    min-height: 250px; / Ensure it's visible /
				    max-height: 400px;
				    overflow-y: auto;*/ 
		        } 
				
				/* Right Side - Award Container */
				#0-awainfoid {

				}
					
					/* Award wrapper to hold image + tooltip */
					/* Award wrapper */
					.award-wrapper {
					    position: relative;
					    display: flex;
					    align-items: center;
					    justify-content: center;		   
				        
					}
					
					/* Award images */
					.award {
					    width: 4.0vw;
			            height: 4.0vw;
			            margin-top: 0.2vw;
			            object-fit: contain;
			 		    border-radius: var(--border-radius);
					    border: 1px solid #dddddd;
			            box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
			            transition: transform 0.3s ease-in-out;
			            background: white;
					}
					
								
			        /* Hover effect */
			        .award:hover {
			            transform: scale(2.0);
			        }
					        /* Tooltip (Hidden by default) */
			        .tooltip { 
			            position: absolute;
			            bottom: 110%;
			            left: 50%;
			            transform: translateX(-50%);
			            background-color: rgba(0, 0, 0, 0.8);
			            color: #fff;
			            padding: 0.2vw 0.2vw;
			            font-size: 1.7vw; 
			            border-radius: var(--border-radius);
			            white-space: nowrap;
			            opacity: 0;
			            visibility: hidden;
			            transition: opacity 0.3s ease-in-out, visibility 0.3s;
			            z-index: 140;
			        }
			  
			        /* Tooltip arrow */
			        .tooltip::after {
			            content: "";
			            position: absolute;
			            top: 100%;
			            left: 50%;
			            transform: translateX(-50%);
			            border-width: 0.2vw;
			            border-style: solid;
			            border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
			        }
			
			        /* Show tooltip when hovering over award */
			        .award-wrapper:hover .tooltip {
			            opacity: 1;
			            visibility: visible;
			        }   
					        /* Tooltip styling */
			        #tooltip {
			            position: absolute;
			            background-color: rgba(0, 0, 0, 0.8);
			            color: #fff;
			            padding: 0.2vw 0.2vw;
			            font-size: 1.7vw;
			            border-radius: var(--border-radius);
			            white-space: nowrap;
			            visibility: hidden;
			            opacity: 0;
			            transition: opacity 0.2s ease-in-out;
			            pointer-events: none;
			        }
					
					/* Show tooltip on hover */
					.award-wrapper:hover .tooltip {
					    visibility: visible;
					    opacity: 1;
					}
		
		/* RESPONSIVE DESIGN */
				
			/* Responsive Adjustments */
			@media (max-width: 1024px) {
			   /* .loader-content {
			        width: 40%;
			    }*/
			}
			
			@media (max-width: 768px) {
			   /* .loader-content {
			        width: 30%;
			        padding: 1.5rem;
			    }*/
			
			    .clasButton, .freeButton, .blocButton, .teleButton, .creditButton, .playButton{
			        width: 180px;
			    }
			
			    .slbresult {
			        width: 180px;
			    }
			}
			
			@media (max-width: 480px) {
				.myprofile {
   
    				width: 100%;
				}
			    .loader-content {
			        width: 100%;
			        padding: 0.5rem;
			    }
			
			    .clasButton, .freeButton, .blocButton, .teleButton, .creditButton, .playButton{
			        width: 160px;
			        font-size: 0.9rem;
			    }
				.playButton{
					 width: 60px;
					 height: 60px;
			        font-size: 0.9rem;
				}
				
			  	.profile-container {
				    flex-direction: column; /* Side by side */
				    width: 90%;
				    margin-top: -3vw;
			  	}
			  	.loader-content {
			     
			   	 }
			   	 .award {
				    width: 6vw;
			        height: 6vw;
			   	 }
		   	 	.infoimg{
					font-size: 4vw;
					font-weight: 600;
				}
			   	 .sta {
			 		font-size: 3.5vw;
			    }
			      
			    .outinfo, .outstar {
			        width: 45px;
			    }
			    .slbresult {
			        width: 160px;
			    }
			    #form--text {
			    	font-size: 1.0rem;
			    	margin-top: -1vw;
			    }
			    .myprofile {
			    	margin-top: -1.4vw;
			    	margin-bottom: 2.5vw;
			    }
			    .proaward{
			    	
			    }
			    .ads-container {
				  min-width: 300px;
				  min-height: 250px;
				}
			    
			    
			}
			a.disabled {
			  pointer-events: none;
			  color: gray;
			  opacity: 0.6;
			  text-decoration: none;
			}
			
			.cooldown-cursor {
			  pointer-events: none;
			  cursor: default;
			  opacity: 0.6;
			}
/* Backdrop panel */
.auth-options-panel{
  position: fixed;
  inset: 0;
  display: none;              /* hidden by default */
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.auth-options-panel.show{ display: flex; }

.auth-card{
  width: min(380px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  position: relative;
}

.auth-heading{
  margin: 4px 0 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #141414;
}

.xclose{
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  font-size: 22px;
  line-height: 1;          /* important */
  padding: 0;
  padding-bottom: 2px;
  border-radius: 10px;
}

.xclose:hover{ background: rgba(0,0,0,.1); }

.auth-options{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-divider{
  height: 1px;
  background: rgba(0,0,0,.12);
  margin: 6px 0;
}

.auth-opt{
  width: 100%;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 14px;
  padding: 12px 12px;
  cursor: pointer;
  text-align: left;
  transition: transform .06s ease, filter .15s ease, box-shadow .15s ease;
}

.auth-opt:active{ transform: scale(.99); }
.auth-opt:hover{ filter: brightness(0.98); box-shadow: 0 10px 20px rgba(0,0,0,.08); }

.auth-row{
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-ico{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-ico-plain{
  background: rgba(0,0,0,.06);
  font-size: 18px;
}

.auth-text{ display: flex; flex-direction: column; gap: 2px; }

.auth-title{
  font-weight: 800;
  font-size: 14px;
  color: #111;
}

.auth-sub{
  font-size: 12px;
  color: rgba(0,0,0,.65);
}

/* Google (white button with subtle border) */
.auth-opt-google{
  background: #0f9d58;
}
.auth-opt-google .auth-ico{
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
}

/* Facebook (official-style blue) */
.auth-opt-facebook{
  background: #1877F2;
  border-color: rgba(0,0,0,.08);
}
.auth-opt-facebook .auth-title,
.auth-opt-facebook .auth-sub{
  color: #fff;
}
.auth-opt-facebook .auth-sub{ opacity: .9; }
.auth-opt-facebook .auth-ico{
  background: rgba(255,255,255,.18);
}

/* Orange buttons for local actions */
.auth-opt-orange{
  background: #ff8a00;
  border-color: rgba(0,0,0,.10);
}
.auth-opt-orange .auth-title,
.auth-opt-orange .auth-sub{
  color: #fff;
}
.auth-opt-orange .auth-sub{ opacity: .92; }
.auth-opt-orange .auth-ico{
  background: rgba(255,255,255,.22);
}

/* Disabled state (you can toggle from JS) */
.auth-opt.is-disabled{
  opacity: .45 !important;
  pointer-events: none !important;
  filter: grayscale(0.2);
}

/* Footer */
.auth-footer{
  margin-top: 12px;
  text-align: center;
}

/* Darker cancel button */
.auth-cancel{
  background: #444;        /* dark grey */
  color: #fff;
  border: none;
  font-weight: 700;
}

.auth-cancel:hover{
  background: #2f2f2f;
}

/* Tablets (Portrait) */
@media (max-width: 1024px) {

}

/* Mobile Devices */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
	

    .tooltip {
        font-size: 12px;
    }
}
/* Tablets and Larger Screens (Side by Side Layout) */
@media (min-width: 1024px) {
    .container {
        flex-direction: row;
    }

}

/* Smaller Screens (Keep Stacked Layout) */
@media (max-width: 768px) {

}
/* Small Phones */
@media (max-width: 480px) {
	

}
.toast-container{
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  z-index: 99999;
}

.toast-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
  color: #fff;
  background: #323232;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
  word-break: break-word;
}

.toast-item.show{
  opacity: 1;
  transform: translateY(0);
}

.toast-item.hide{
  opacity: 0;
  transform: translateY(10px);
}

.toast-message{
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.35;
}

.toast-close{
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
  margin: 0;
  line-height: 1;
}
.toast-item.flash{
  animation: toastFlashStrong 0.55s ease 4;
}

@keyframes toastFlashStrong{
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  20%  { transform: translateY(0) scale(1.04); opacity: 0.82; }
  40%  { transform: translateY(0) scale(1); opacity: 1; }
  60%  { transform: translateY(0) scale(1.04); opacity: 0.82; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}