:root { 
    --neon: #00f2ff; --pink: #ff2d55; --blue: #3a86ff;
    --dark: #050a14; --glass: rgba(255, 255, 255, 0.1); 
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }
body { margin: 0; background: var(--dark); color: white; font-family: 'Segoe UI', Roboto, sans-serif; height: 100vh; overflow: hidden; }

.page { display: none; width: 100%; height: 100vh; position: absolute; background: var(--dark); }
.active { display: flex; flex-direction: column; }

/* স্ক্রলিং এরিয়া */
.scroll-wrapper, .records-container, .store-grid {
	width: 100%;
	height: 100%;
	overflow-y: auto;
	padding: 50px 20px 20px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.game-title{
    margin-top: 0px;
}
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; align-content: start; }

/* নিওন বক্স ও টেক্সট */
.neon-box {
    background: var(--glass); padding: 10px 30px; border-radius: 50px;
    border: 2px solid var(--neon); box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    margin: 20px 0; font-size: 1.8rem; font-weight: bold; color: var(--neon);
}
.neon { color: var(--neon); text-shadow: 0 0 10px var(--neon); }
.gold { color: #ffd700; text-shadow: 0 0 10px #ffd700; }

/* HUD ডিজাইন */
.hud {
	position: absolute;
	top: 0;
	width: 100%;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	padding: 15px;
	z-index: 1000;
	gap: 40px;
}
.lives-display {
	position: absolute;
	top: 70px;
	right: 0px;
	display: grid;
}
.hud-btn { background: var(--glass); border: 1px solid white; color: white; width: 45px; height: 45px; border-radius: 12px; cursor: pointer; font-size: 1.2rem; }
.score-container { text-align: center; }
.score-label { margin: 0; font-size: 0.7rem; letter-spacing: 2px; color: #aaa; }
.score-val { margin: 0; font-size: 1.8rem; font-weight: 900; color: white; text-shadow: 0 0 15px var(--neon); }

/* বাটন ডিজাইন */
.main-btn { 
    width: 100%; padding: 15px; border-radius: 50px; border: none; 
    background: var(--pink); color: white; font-weight: bold; cursor: pointer; 
    font-size: 1rem; margin-bottom: 12px; transition: 0.2s;
}
.btn-blue { background: var(--blue); }
.btn-purple { background: #8338ec; }
.ad-btn { background: #22c55e; color: white; border: none; padding: 12px 25px; border-radius: 50px; font-weight: bold; cursor: pointer; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* স্টোর কার্ড */
.rocket-card { background: var(--glass); padding: 20px; border-radius: 20px; text-align: center; border: 2px solid transparent; position: relative; }
.rocket-card.selected { border-color: var(--neon); background: rgba(0, 242, 255, 0.2); }
.rocket-card img { width: 60px; height: 60px; object-fit: contain; }
.lock-info { font-size: 0.7rem; color: #ffbcbc; margin-top: 5px; display: block; }

/* পপআপ ডিজাইন */
.popup { position: fixed; inset: 0; background: rgba(0,0,0,0.92); display: none; place-items: center; z-index: 5000; backdrop-filter: blur(5px); }
.popup-content { background: #111827; padding: 30px; border-radius: 30px; text-align: center; width: 85%; max-width: 320px; border: 2px solid var(--neon); }
.popup-btns { display: flex; gap: 10px; margin-top: 20px; }
.sm { padding: 10px; font-size: 0.9rem; }
.scale-in { animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes scaleIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#playerName { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid #333; background: #000; color: white; margin: 15px 0; text-align: center; }
#canvas { display: block; width: 100%; height: 100%; }
.floating-btn { position: fixed; top: 15px; right: 15px; z-index: 2001; background: var(--glass); border: 1px solid var(--neon); color: white; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; }

/* গেম পেজের জন্য কন্ট্রোল ইন্ডিকেটর (ঐচ্ছিক কিন্তু সুন্দর দেখাবে) */
#gamePage::before {
	content: " ";
	position: absolute;
	bottom: 30px;
	left: 20px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.2);
	z-index: 5;
	pointer-events: none;
	border: 1px solid #5858585d;
	width: 80px;
	height: 100px;
	background: #ffffff1c;
}

#gamePage::after {
    content: " ";
    position: absolute;
    bottom: 30px;
    right: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
    z-index: 5;
    pointer-events: none;
    border: 1px solid #5858585d;
	width: 80px;
	height: 100px;
	background: #ffffff1c;
}
/* লিডারবোর্ড কন্টেইনার */
.records-container {
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* লিস্ট স্টাইল */
.records-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.records-container li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    transition: transform 0.2s;
    border-left: 4px solid transparent;
}

/* টপ ৩ প্লেয়ারের জন্য স্পেশাল কালার */
.records-container li:nth-child(1) { 
    border-left-color: #ffd700; /* Gold */
    background: rgba(255, 215, 0, 0.1);
}
.records-container li:nth-child(2) { 
    border-left-color: #c0c0c0; /* Silver */
    background: rgba(192, 192, 192, 0.1);
}
.records-container li:nth-child(3) { 
    border-left-color: #cd7f32; /* Bronze */
    background: rgba(205, 127, 50, 0.1);
}

/* নাম এবং স্কোরের স্টাইল */
.records-container li span:first-child {
    font-weight: bold;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.records-container li span:last-child {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    color: var(--neon); /* আপনার আগের নিওন ভ্যারিয়েবল */
    text-shadow: 0 0 10px var(--neon);
}

/* হোভার ইফেক্ট */
.records-container li:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.08);
}
.back-icon {
	background: var(--glass);
	border: 1px solid white;
	color: white;
	width: 45px;
	height: 45px;
	border-radius: 12px;
	cursor: pointer;
	font-size: 1.2rem;
    margin-top: 15px;
}
.header-nav{
    padding: 0 15px;
}
.logo{
    width: 80px;

}