* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: #0f172a;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* Splash Screen */
#splash {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

#splash::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

#splash::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 5s ease-in-out infinite reverse;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-badge {
    display: inline-block;
    /* background: linear-gradient(135deg, #38bdf8, #0ea5e9); */
    color: black;
    padding: 10px 24px;
    border-radius: 50px;
    /* font-weight: 700; */
    /* font-size: 0.9rem; */
    /* letter-spacing: 1.2px; */
    /* margin-bottom: 30px; */
    margin-bottom: 10px;
    /* text-transform: uppercase; */
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
    animation: bounce 2s ease-in-out infinite;
}

.logo-badge {
    width: 45px;
    display: inline-block;
    color: black;
    padding: 6px 4px;
    margin-right: 10px;
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
    cursor: pointer;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    margin: 20px 0;
    line-height: 1.1;
    letter-spacing: -2px;
}

.logo-code {
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: slideInLeft 0.8s ease-out;
}

.logo-num {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin: 0 10px;
    animation: slideInRight 0.8s ease-out;
}

.logo-cricket {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: slideInLeft 0.8s ease-out 0.1s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tagline {
    font-size: 1.4rem;
    color: #cbd5f5;
    margin: 20px 0 50px;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.loader-section {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.loader-container {
    width: 300px;
    height: 6px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    overflow: hidden;
    margin: 40px auto;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.1), 0 0 20px rgba(56, 189, 248, 0.2);
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9, #38bdf8);
    transition: width 0.1s;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
}

#loading-text {
    margin-top: 15px;
    font-family: 'Courier Prime', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #1e293b, #0f1720);
    border-bottom: 2px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.navbar-nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(14, 165, 233, 0.1));
    color: #38bdf8;
    border: 1px solid #38bdf8;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: black;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: black;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.nav-btn span {
    font-size: 1.1rem;
}

.preview {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.preview-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.preview-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.preview-subtitle {
    font-size: 1.1rem;
    color: #cbd5f5;
    font-weight: 300;
}

.preview-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.preview-cards .preview-card {
    width: 220px;
    height: 350px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.4s ease;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 15px;
}

.preview-cards .preview-card.epic {
    background: linear-gradient(135deg, #9333ea, #c084fc);
    border: 1px solid #c084fc;
}

.preview-cards .preview-card.legendary {
    background: linear-gradient(135deg, gold, orange);
    border: 1px solid gold;
}

.preview-cards .preview-card img {
    width: auto;
    max-width: 90%;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.preview-cards .preview-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.preview-cards .preview-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 3px 0;
}

.preview-cards .preview-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.3);
    border-color: #38bdf8;
}

.about {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a2744, #0f172a);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.about-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    margin: 0 auto;
    border-radius: 2px;
}

.about-content {
    margin: 40px 0;
}

.about-content p {
    font-size: 1.1rem;
    color: #cbd5f5;
    line-height: 1.8;
    margin: 20px 0;
    text-align: center;
}

.about-content strong {
    color: #38bdf8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    background: rgba(30, 41, 59, 0.6);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: #38bdf8;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.feature h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.feature p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0 !important;
    text-align: center;
    line-height: 1.6;
}

footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-top: 2px solid rgba(56, 189, 248, 0.2);
    padding: 60px 20px 20px;
    color: #cbd5f5;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-section h5 {
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #cbd5f5;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}



/* Main Content */
.hidden {
    display: none !important;
}

header {
    padding: 15px;
    background: #1e293b;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Courier+Prime:wght@400;700&display=swap');

.dashboard {
    min-height: 600px;
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    border-bottom: 2px solid #38bdf8;
}

.dashboard::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.dashboard::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: black;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #cbd5f5;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: black;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

.btn-restart {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-restart:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-restart:active {
    transform: translateY(-1px);
}

.btn-restart span {
    position: relative;
    z-index: 2;
    margin-right: 8px;
}

button {
    padding: 10px 20px;
    margin-top: 20px;
    border: none;
    background: #38bdf8;
    color: black;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #0ea5e9;
}

.challenge-hero {
    max-width: 1200px;
    margin: 30px auto 20px;
    padding: 40px 30px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.hero-copy {
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.9rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 10px 18px;
    border-radius: 999px;
    margin-bottom: 18px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.challenge-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.challenge-hero p {
    color: #cbd5f5;
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-wins {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-wins div {
    min-width: 140px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.15);
    text-align: center;
}

.hero-wins strong {
    display: block;
    font-size: 2rem;
    font-family: 'Orbitron', sans-serif;
    color: #38bdf8;
    margin-bottom: 6px;
}

.hero-wins span {
    color: #94a3b8;
    font-size: 0.95rem;
}

.challenges-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px 30px;
}

.challenges-left,
.challenges-right {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.challenge-panel {
    padding: 28px 24px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.challenge-panel h2 {
    margin: 0 0 10px;
    font-family: 'Orbitron', sans-serif;
    color: #38bdf8;
    font-size: 1.8rem;
}

.challenge-panel p {
    margin: 0;
    color: #94a3b8;
}

.challenge-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 18px;
    padding: 24px;
}

.challenges-left {
    overflow-y: auto;
    max-height: calc(100vh - 60px);
    padding-right: 10px;
}

.challenges-right {
    padding: 24px;
}

.challenge {
    padding: 22px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.challenge:hover {
    background: rgba(56, 189, 248, 0.08);
    transform: translateY(-4px);
    border-color: #38bdf8;
}

.challenge h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #e2e8f0;
}

.challenge p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

.challenge .lang {
    margin-top: 10px;
    padding: 6px 12px;
    background: rgba(56, 189, 248, 0.12);
    border-radius: 999px;
    display: inline-block;
    color: #38bdf8;
    font-weight: 700;
}

.challenge-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px;
    min-height: 520px;
}

.challenge-detail-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-size: 0.85rem;
    width: fit-content;
}

.challenge-details h3 {
    margin: 0;
    font-size: 2rem;
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
}

.detail-desc {
    color: #cbd5f5;
    line-height: 1.8;
}

.detail-meta p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

#code-input {
    width: 100%;
    min-height: 220px;
    margin-top: 8px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: #020617;
    color: #38bdf8;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    outline: none;
    resize: vertical;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

#code-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
}

.challenge-details button {
    width: 100%;
    padding: 18px 0;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: black;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.challenge-details button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.4);
}

.placeholder-box {
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.placeholder-box h3 {
    margin: 0 0 12px;
    font-size: 1.8rem;
    color: #38bdf8;
}

.placeholder-box p {
    margin: 0;
    color: #94a3b8;
    max-width: 360px;
}

.lang {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    font-size: 0.8rem;
    background: #38bdf8;
    color: black;
    border-radius: 20px;
    font-weight: bold;
}

@media (max-width: 900px) {
    .challenges-container {
        grid-template-columns: 1fr;
    }

    .challenge-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .challenge-hero h1 {
        font-size: 2.2rem;
    }
}

.challenges-left::-webkit-scrollbar {
    width: 8px;
}

.challenges-left::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 10px;
}

.challenges-left::-webkit-scrollbar-thumb {
    background: #38bdf8;
    border-radius: 10px;
}

.challenges-left::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

#card-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.8);

    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    width: 220px;
    height: 320px;
    perspective: 1000px;
}

#card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.card h2 {
    margin-top: 10px;
    font-size: 18px;
}

.card p {
    font-size: 13px;
    margin: 3px 0;
}

/* Flip class */
.flip {
    transform: rotateY(180deg);
}

/* Front & Back */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    backface-visibility: hidden;
    overflow: hidden;
}

/* FRONT */
.card-front {
    background: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

/* BACK */
.card-back {
    transform: rotateY(180deg);
    padding: 15px;
    text-align: center;
    color: white;
    background: #0f172a;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Image */
.card-back img {
    width: auto;
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    border-radius: 10px;
}

.card-front h2,
.card-back h3 {
    margin-top: 10px;
    font-size: 18px;
}

.card-front p,
.card-back p {
    font-size: 13px;
    margin: 3px 0;
}

.reveal-btn {
    margin-top: 20px;
    padding: 10px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: black;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reveal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

.card-type {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: black;
    background: #f8fafc;
}

.card-type.common {
    background: #9ca3af;
}

.card-type.rare {
    background: #60a5fa;
}

.card-type.epic {
    background: #c084fc;
}

.card-type.legendary {
    background: gold;
}

/* Rarity Colors */
.common {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.rare {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.epic {
    background: linear-gradient(135deg, #9333ea, #c084fc);
}

.legendary {
    background: linear-gradient(135deg, gold, orange);
    box-shadow: 0 0 25px gold;
}

/* Animation */
@keyframes pop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.collection-container {
    width: min(100%, 1800px);
    max-width: 1800px;
    margin: 0 auto;
    padding: 60px 30px;
    flex: 1;
}

.collection-header {
    display: block;
    margin-bottom: 40px;
    padding: 40px 40px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.15);
    text-align: center;
}

.collection-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.collection-header p {
    color: #cbd5f5;
    max-width: 760px;
    margin: 0 auto 28px;
    line-height: 1.8;
    font-size: 1rem;
}

.collection-summary {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.collection-summary div {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 20px 25px;
    border-radius: 14px;
    min-width: 140px;
    text-align: center;
}

.collection-summary span {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #38bdf8;
    margin-bottom: 6px;
}

.collection-summary small {
    color: #94a3b8;
}

.collection-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    /* grid-template-columns: repeat(6, 1fr); */
    gap: 24px;
    padding: 10px 0;
}

.available-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    /* grid-template-columns: repeat(6, 1fr); */
    gap: 24px;
    padding: 10px 0;
}

.collection-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: all 0.35s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.collection-card.common {
    background: linear-gradient(135deg, rgb(156, 163, 175), rgba(107, 114, 128, 0.18));
    border-color: rgba(156, 163, 175, 0.523);
}

.collection-card.rare {
    background: linear-gradient(135deg, rgb(60, 145, 250), rgba(37, 100, 235, 0.29));
    border-color: rgba(96, 165, 250, 0.501);
}

.collection-card.epic {
    background: linear-gradient(135deg, rgb(162, 73, 250), rgba(146, 51, 234, 0.297));
    border-color: rgba(192, 132, 252, 0.592);
}

.collection-card.legendary {
    background: linear-gradient(135deg, rgb(245, 159, 11), rgba(217, 119, 6, 0.329));
    border-color: rgba(245, 159, 11, 0.733);
}

.collection-card:hover {
    transform: translateY(-8px);
    border-color: #38bdf8;
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.18);
}

.collection-card img {
    width: auto;
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 14px;
}

.collection-card h4 {
    margin: 0;
    font-size: 1.15rem;
    color: #e2e8f0;
}

/* Stats row ko side-by-side karne ke liye */
.card-stats {
    display: flex;
    justify-content: center;
    gap: 20px; /* Dono ke beech ka gap */
    width: 100%;
}

/* Specific styling for description to keep it neat */
.player-desc {
    font-size: 0.85rem !important; /* Thoda chota font desc ke liye */
    margin-top: 5px;
}

/* Optional: P tags ko thoda width control dene ke liye */
.collection-card p {
    margin: 0;
    white-space: nowrap; /* Taki text ek hi line mein rahe */
}

/* Description ke liye wrap allow karna padega */
.collection-card p.player-desc {
    white-space: normal;
}

.collection-card p {
    margin: 0;
    color: rgba(203, 213, 245, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.collection-card .card-rarity {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
    background: #38bdf8;
}

.collection-card.common .card-rarity {
    background: #9ca3af;
    color: #111;
}

.collection-card.rare .card-rarity {
    background: #60a5fa;
}

.collection-card.epic .card-rarity {
    background: #c084fc;
}

.collection-card.legendary .card-rarity {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #111;
}

@media (max-width: 900px) {
    .collection-header {
        padding: 28px 24px;
    }
}

@media (max-width: 640px) {
    .collection-header {
        padding: 22px;
    }
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    flex: 1;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(168, 85, 247, 0.1));
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 50px;
}

.profile-avatar {
    font-size: 4rem;
    min-width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

.profile-info h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
}

.profile-title {
    font-size: 1.1rem;
    color: #cbd5f5;
    margin: 5px 0;
}

.profile-joined {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 5px 0;
}

/* Profile Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.6));
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: #94a3b8;
}

/* Level Section */
.level-section {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(168, 85, 247, 0.05));
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.15);
    margin-bottom: 50px;
}

.level-section h3 {
    font-family: 'Orbitron', sans-serif;
    color: #38bdf8;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.level-bar-container {
    width: 100%;
    height: 20px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 10px;
}

.level-bar {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #38bdf8, #60a5fa);
    border-radius: 10px;
    box-shadow: 0 0 10px #38bdf8;
}

.level-text {
    font-size: 0.9rem;
    color: #cbd5f5;
    text-align: center;
}

/* Profile Content Grid */
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.profile-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.5));
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.reset,
.skills {
    margin-top: 40px;
}

.profile-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
}

.profile-section.full-width {
    grid-column: 1 / -1;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
}

.achievement {
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: center;
}

.achievement div {
    font-size: 1.8rem;
}

.achievement.common {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    border: 1px solid #9ca3af;
}

.achievement.rare {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    border: 1px solid #60a5fa;
}

.achievement.epic {
    background: linear-gradient(135deg, #9333ea, #c084fc);
    border: 1px solid #c084fc;
}

.achievement.legendary {
    background: linear-gradient(135deg, gold, orange);
    border: 1px solid gold;
}

.achievement.locked {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.1);
    opacity: 0.6;
}

.achievement:hover:not(.locked) {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(56, 189, 248, 0.3);
}

/* Stats Details */
.stats-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #38bdf8;
}

.stat-detail label {
    color: #cbd5f5;
    font-weight: 600;
}

.stat-detail span {
    color: #38bdf8;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #38bdf8;
    transition: all 0.3s ease;
}

.activity-item:hover {
    border-color: #60a5fa;
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
}

.activity-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.activity-text p {
    margin: 0;
    color: #cbd5f5;
    font-weight: 500;
}

.activity-text time {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 3px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
}

.skill-name {
    color: #38bdf8;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Responsive */
@media (max-width: 1400px) {
    .available-cards-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .available-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1000px) {
    .available-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 750px) {
    .available-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .available-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .profile-info h1 {
        font-size: 1.8rem;
    }
}

#code-input {
    /* width: 80%; */
    height: 400px;
    margin-top: 15px;
    padding: 15px;

    background: #020617;
    /* dark editor */
    color: #38bdf8;
    /* blue text */

    border: 1px solid #334155;
    border-radius: 10px;

    font-family: "Courier New", monospace;
    font-size: 14px;

    outline: none;
    resize: none;

    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* focus glow */
#code-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

#code-input::-webkit-scrollbar {
    width: 8px;
}

#code-input::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 10px;
}

#code-input::-webkit-scrollbar-thumb {
    background: #38bdf8;
    border-radius: 10px;
}

#code-input::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}










/* Responsive later (optional now) */
@media(max-width: 900px) {
    .challenge-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .preview-cards {
        flex-wrap: wrap;
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
    }
}