:root {
    /* MineM Color Palette from Logo */
    --clr-bg: #0a0505;
    /* Deep dark reddish/brownish black */
    --clr-bg-light: #150a0a;
    --clr-bg-card: #1a0c0c;

    --clr-primary: #e62e2e;
    /* Red from logo */
    --clr-primary-dark: #b81f1f;
    --clr-secondary: #ff7300;
    /* Orange/Gold from logo */
    --clr-secondary-light: #ffa64d;
    --clr-accent: #1cc0a9;
    /* Teal/cyan accent */

    --clr-text: #f0f0f0;
    --clr-text-muted: #a69b9b;

    --clr-ramadan: #ffcc00;
    /* Ramadan moon/star yellow */

    --font-heading: 'Pixelify Sans', cursive, sans-serif;
    --font-body: 'Poppins', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url('images/cursor.png'), auto;
}

/* Custom Cursor on hover elements */
a,
button,
.mc-btn,
.prize-code-box,
.mobile-menu-btn {
    cursor: url('images/cursor.png'), pointer !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--clr-primary-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-primary);
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 800;
}

p {
    color: var(--clr-text-muted);
}

/* Utilities */
.text-accent {
    color: var(--clr-primary);
}

.text-ramadan {
    color: var(--clr-ramadan);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

.gradient-text {
    background: linear-gradient(135deg, var(--clr-secondary), var(--clr-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(230, 46, 46, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(230, 46, 46, 0.5));
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.nav-links a {
    color: #dfd8d8;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: #2b2b2b;
    /* Dark Stone */
    border: 3px solid #000;
    box-shadow: inset -3px -3px 0px rgba(0, 0, 0, 0.6), inset 3px 3px 0px rgba(255, 255, 255, 0.15);
    text-shadow: 2px 2px 0px #111;
    white-space: nowrap;
    /* Prevent text wrapping */
    transition: transform 0.1s, background 0.1s;
}

.nav-links a:hover,
.nav-links a.active {
    background: #3f3f3f;
    color: #ffff55;
    /* MC Yellow */
    box-shadow: inset -2px -2px 0px rgba(0, 0, 0, 0.6), inset 2px 2px 0px rgba(255, 255, 255, 0.3);
    transform: translateY(2px);
}

.nav-links a.highlight {
    color: #ffaa00;
    /* Gold */
}

.join-btn {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 46, 46, 0.4);
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 115, 0, 0.6);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 204, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    /* Subtle background */
    filter: blur(3px);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--clr-bg) 80%);
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.hero-logo {
    max-width: 450px;
    width: 100%;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(255, 115, 0, 0.5));
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #dfd8d8;
}

.ramadan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    color: var(--clr-ramadan);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 46, 46, 0.4);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 115, 0, 0.5);
}

.secondary-btn {
    background: rgba(26, 12, 12, 0.6);
    border: 1px solid var(--clr-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    background: var(--clr-accent);
    color: var(--clr-bg);
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--clr-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 46, 46, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(230, 46, 46, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(230, 46, 46, 0.2);
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    background: var(--clr-primary);
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Giveaways/Ramadan section */
.giveaways {
    position: relative;
}

.giveaways-bg-elements {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glowing-orb {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 46, 46, 0.05) 0%, transparent 60%);
    filter: blur(40px);
}

.giveaway-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.prize-card {
    background: linear-gradient(to bottom, #1c1010, var(--clr-bg-card));
    border: 1px solid rgba(255, 115, 0, 0.1);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.prize-card.premium {
    transform: scale(1.05);
    border: 1px solid rgba(255, 204, 0, 0.3);
    background: linear-gradient(to bottom, #2a1b12, #18100a);
    box-shadow: 0 10px 40px rgba(255, 204, 0, 0.1);
}

.prize-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 115, 0, 0.3);
}

.prize-card.premium:hover {
    transform: scale(1.05) translateY(-10px);
    border-color: rgba(255, 204, 0, 0.6);
}

.prize-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-ramadan);
    color: var(--clr-bg);
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
}

.prize-icon {
    font-size: 3rem;
    color: var(--clr-secondary);
    margin-bottom: 1.5rem;
}

.premium .prize-icon {
    color: var(--clr-ramadan);
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.4));
}

.prize-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.prize-card p {
    margin-bottom: 2rem;
}

.join-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #5865F2;
    /* Discord color */
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.join-discord-btn:hover {
    background: #4752C4;
    transform: scale(1.05);
}


/* Footer */
footer {
    background: var(--clr-bg-light);
    border-top: 1px solid rgba(230, 46, 46, 0.1);
    padding-top: 4rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    color: var(--clr-text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--clr-primary);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--clr-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    color: #666;
    font-size: 0.9rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--clr-accent);
    color: var(--clr-bg);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    box-shadow: 0 10px 30px rgba(28, 192, 169, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Minecraft Theme Enhancements */
.mc-panel {
    border: 2px solid #383838;
    border-top-color: #707070;
    border-left-color: #707070;
    background-color: #2b2b2b;
    box-shadow: inset -2px -2px 0px 0px #141414, inset 2px 2px 0px 0px #545454;
    position: relative;
    border-radius: 4px;
}

.mc-panel:hover {
    border-color: var(--clr-primary);
    box-shadow: 0 0 15px rgba(230, 46, 46, 0.4), inset -2px -2px 0px 0px #141414, inset 2px 2px 0px 0px #545454;
}

.mc-btn {
    border: 2px solid #141414 !important;
    border-top-color: #707070 !important;
    border-left-color: #707070 !important;
    border-radius: 0 !important;
    /* Minecraft buttons are square */
    box-shadow: inset -2px -2px 0px 0px #141414 !important;
    text-transform: uppercase;
    font-weight: 800 !important;
}

.mc-btn:active {
    border-top-color: #141414 !important;
    border-left-color: #141414 !important;
    border-bottom-color: #707070 !important;
    border-right-color: #707070 !important;
    box-shadow: inset 2px 2px 0px 0px #141414 !important;
    transform: translateY(2px) !important;
}

/* Server Status Badge */
.badges-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.ramadan-badge {
    margin-bottom: 0;
    /* Reset from before */
}

.server-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(28, 192, 169, 0.1);
    border: 1px solid rgba(28, 192, 169, 0.3);
    color: var(--clr-accent);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--clr-accent);
    border-radius: 50%;
    animation: statusPulse 1.5s infinite;
}

.pulse-dot.offline {
    background-color: var(--clr-primary);
    animation: none;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(28, 192, 169, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(28, 192, 169, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(28, 192, 169, 0);
    }
}

/* Stats Section */
.stats-section {
    position: relative;
    padding-top: 4rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.stat-box .stat-icon {
    font-size: 2.5rem;
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
}

.stat-box h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.stat-box p {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Leaderboard Podium */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    max-width: 900px;
    margin: 4rem auto 0;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

.place-1 {
    width: 35%;
    z-index: 10;
    transform: translateY(-30px);
}

.player-avatar {
    position: relative;
    margin-bottom: -20px;
    z-index: 5;
}

.player-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 4px solid var(--clr-bg-card);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    background-color: var(--clr-bg);
}

.place-1 .player-avatar img {
    width: 120px;
    height: 120px;
    border-color: var(--clr-ramadan);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

.crown {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.5));
}

.medal {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid var(--clr-bg);
}

.medal-gold {
    background: linear-gradient(135deg, #FFDF73, #D4AF37);
    color: #8C6D00;
}

.medal-silver {
    background: linear-gradient(135deg, #E6E6E6, #A6A6A6);
    color: #595959;
}

.medal-bronze {
    background: linear-gradient(135deg, #E6A873, #CD7F32);
    color: #7B4715;
}

.podium-block {
    width: 100%;
    text-align: center;
    padding: 3rem 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    min-height: 150px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.place-1 .podium-block {
    min-height: 180px;
}

.place-2 .podium-block {
    min-height: 140px;
}

.place-3 .podium-block {
    min-height: 120px;
}

.podium-block h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.rank-number {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 900;
    opacity: 0.1;
    line-height: 1;
}

.premium-block {
    border-color: var(--clr-ramadan);
    background: linear-gradient(to bottom, #2a1b12, #18100a);
}

/* Leaderboard List */
.leaderboard-list {
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.list-rank {
    width: 60px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-text-muted);
    font-family: var(--font-heading);
}

.list-avatar {
    margin-right: 1.5rem;
}

.list-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: var(--clr-bg);
}

.list-name {
    flex-grow: 1;
    font-size: 1.2rem;
    font-weight: 600;
}

.list-score {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--clr-secondary);
    font-weight: bold;
}

/* Wiki Page */
.wiki-sidebar ul {
    list-style: none;
}

.wiki-sidebar li {
    margin-bottom: 0.5rem;
}

.wiki-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--clr-text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.wiki-sidebar a:hover,
.wiki-sidebar a.active {
    background: rgba(230, 46, 46, 0.1);
    color: var(--clr-primary);
    transform: translateX(5px);
}

.wiki-sidebar a.active {
    border-left: 3px solid var(--clr-primary);
}

.rule-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 8px;
    background: rgba(230, 46, 46, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.rule-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--clr-text);
}

.styled-list {
    list-style: none;
    margin-left: 1rem;
}

.styled-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.styled-list li::before {
    content: '❯';
    position: absolute;
    left: 0;
    color: var(--clr-primary);
    font-size: 0.8rem;
    top: 3px;
}

/* Particles Background */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Above backgound, below content */
    pointer-events: none;
}

.hero-content {
    z-index: 10;
}

/* ========================================= */
/* LOADING SCREEN STYLES                     */
/* ========================================= */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #313131;
    /* Minecraft Dirt/Stone color */
    background-image:
        linear-gradient(45deg, #2b2b2b 25%, transparent 25%, transparent 75%, #2b2b2b 75%, #2b2b2b),
        linear-gradient(45deg, #2b2b2b 25%, transparent 25%, transparent 75%, #2b2b2b 75%, #2b2b2b);
    background-size: 64px 64px;
    background-position: 0 0, 32px 32px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loading-logo {
    width: 250px;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 20px rgba(255, 115, 0, 0.4));
}

.loading-text {
    font-family: 'Pixelify Sans', cursive;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 #000;
}

.loading-bar-container {
    width: 300px;
    height: 30px;
    background: #000;
    border: 3px solid #555;
    border-top-color: #222;
    border-left-color: #222;
    border-bottom-color: #777;
    border-right-color: #777;
    padding: 2px;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: #00ff00;
    /* MC Green Exp Bar */
    border-top: 2px solid #55ff55;
    border-bottom: 2px solid #00aa00;
    transition: width 0.1s linear;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ========================================= */
/* PRE-REGISTRATION MODAL STYLES             */
/* ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Dark dimming */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    text-align: center;
    animation: modal-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e62e2e;
    color: white;
    border: 3px solid #000;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.5), inset 3px 3px 0 rgba(255, 255, 255, 0.4);
}

.close-modal:hover {
    background: #ff5555;
    transform: translateY(2px);
}

.register-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #dfd8d8;
    font-family: 'Pixelify Sans', cursive;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    background: #1a1a1a;
    border: 3px solid #000;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.8);
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #00ff00;
}

.register-submit {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.2rem;
    width: 100%;
}

#register-message {
    margin-top: 1rem;
    padding: 0.8rem;
    font-weight: bold;
    border: 3px solid #000;
    display: none;
}

#register-message.success {
    display: block;
    background: #005500;
    color: #55ff55;
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.6), inset 2px 2px 0 rgba(100, 255, 100, 0.3);
}

#register-message.error {
    display: block;
    background: #550000;
    color: #ff5555;
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.6), inset 2px 2px 0 rgba(255, 100, 100, 0.3);
}

/* ========================================= */
/* HARDCORE MINECRAFT THEME OVERRIDES        */
/* ========================================= */

/* Blocky Fonts & Typography */
h1,
h2,
h3,
h4,
.logo,
.nav-links a,
.btn,
.mc-btn,
.prize-text {
    font-family: 'Pixelify Sans', cursive, monospace !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Base blocky element: dark gray with Minecraft 3D borders */
.feature-card,
.stat-card,
.mc-panel,
.info-panel,
.podium-block,
.wiki-sidebar,
.toast,
.prize-card {
    background-color: #2b2b2b !important;
    /* Stone */
    border: 3px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: inset -4px -4px 0px 0px rgba(0, 0, 0, 0.6), inset 4px 4px 0px 0px rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: none !important;
    transform: none !important;
    /* Disable scale to keep blocks rigid, except button pushes */
}

/* Button blocky style */
.primary-btn,
.secondary-btn,
.join-btn,
.mc-btn,
.prize-code-box,
.mobile-menu-btn i,
.social-icons a {
    background-color: #7b7b7b !important;
    border: 3px solid #000 !important;
    border-radius: 0 !important;
    box-shadow: inset -4px -4px 0px 0px rgba(0, 0, 0, 0.6), inset 4px 4px 0px 0px rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    text-shadow: 2px 2px 0px #3f3f3f !important;
    transition: transform 0.1s !important;
    transform: none !important;
}

.primary-btn:hover,
.secondary-btn:hover,
.join-btn:hover,
.mc-btn:hover,
.prize-code-box:hover,
.social-icons a:hover {
    background-color: #8c8c8c !important;
    box-shadow: inset -2px -2px 0px 0px rgba(0, 0, 0, 0.6), inset 2px 2px 0px 0px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(4px) !important;
    /* "Press down" effect */
    color: #ffff55 !important;
    /* MC Yellow text on hover */
}

/* Special Ramazan / Accent styling for blocks */
.premium-block,
.prize-card.premium {
    background-color: #3b2b10 !important;
    /* Dark gold/dirt */
    border-color: #ffaa00 !important;
    box-shadow: inset -4px -4px 0px 0px rgba(0, 0, 0, 0.6), inset 4px 4px 0px 0px rgba(255, 170, 0, 0.4), 0 0 10px rgba(255, 170, 0, 0.2) !important;
}

/* Images and icons pixelated */
img,
.player-avatar img,
.list-avatar img,
i,
.step-number {
    border-radius: 0 !important;
}

img.logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* Navbar solid block */
.navbar.scrolled {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Global scrollbar blocky */
::-webkit-scrollbar-thumb {
    border-radius: 0 !important;
    background: #7b7b7b !important;
    border: 3px solid #000;
}

/* Scratch container block override */
.scratch-container {
    border-radius: 0 !important;
    border: 6px solid #000 !important;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 1) !important;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .prize-card.premium {
        transform: scale(1);
    }

    .prize-card.premium:hover {
        transform: scale(1.02);
    }

    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    .place-1 {
        order: -1;
    }
}

@media (max-width: 1100px) {
    .nav-links {
        display: none;
        flex-wrap: wrap;
        justify-content: center;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        max-width: 600px;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        top: 70px;
        flex-direction: column;
        background: #2b2b2b !important;
        border: 4px solid #000 !important;
        box-shadow: inset -4px -4px 0px 0px #111, inset 4px 4px 0px 0px #555 !important;
        padding: 1rem;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        white-space: normal;
        /* Fix text overflow */
        word-wrap: break-word;
    }

    .join-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-logo {
        max-width: 250px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-buttons .mc-btn {
        width: 100%;
        justify-content: center;
    }

    /* Leaderboard Mobile */
    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    .podium-item {
        width: 90%;
    }

    .place-1 {
        width: 95%;
        transform: translateY(0);
        order: -1;
        /* Move 1st place to top */
    }

    /* Wiki Mobile */
    .wiki-grid {
        grid-template-columns: 1fr !important;
    }

    .wiki-sidebar {
        position: static !important;
        margin-bottom: 2rem;
    }

    .rule-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Scratchcard Mobile */
    .scratch-container {
        width: 280px;
        height: 280px;
    }
}