   /* --- Font and Scrollbar --- */
   @font-face {
    font-family: 'Minecraft';
    src: local('Arial');
    font-weight: normal;
    font-style: normal;
}

.minecraft-font {
    font-family: 'Minecraft', 'Inter', sans-serif;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 153, 64, 0.3);
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #0A0E14; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF9940, #E67600);
    border-radius: 10px;
    border: 3px solid #0A0E14;
}
::-webkit-scrollbar-thumb:hover { 
    background: linear-gradient(180deg, #FFB366, #FF9940);
}

/* --- Global Styles & Background --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    --htx-bg: #0A0E14;
    --htx-text: #B3B1AD;
    --htx-accent: #FF9940;
    --htx-accent-dark: #E67600;
    --htx-card-bg: rgba(26, 31, 41, 0.8);
    --htx-border: rgba(255, 153, 64, 0.15);
    --htx-success: #4CAF50;
    --htx-error: #F44336;
    --htx-glass: rgba(255, 255, 255, 0.05);

    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 153, 64, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(244, 67, 54, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #0A0E14 0%, #1a1f29 100%);
    background-attachment: fixed;
    color: var(--htx-text);
    font-family: 'Inter', Arial, sans-serif;
    text-align: center;
    overflow-x: hidden;
}

/* --- Animated Background Particles --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--htx-accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* --- Loading Overlay --- */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--htx-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 153, 64, 0.3);
    border-radius: 50%;
    border-top-color: var(--htx-accent);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Header & Navigation --- */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    z-index: 50;
    border-bottom: 1px solid var(--htx-border);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem; /* 80px */
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--htx-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
.logo:hover {
    color: #FFB366;
}
.nav-links-desktop {
    display: none;
}
@media (min-width: 768px) {
    .nav-links-desktop {
        display: flex;
        gap: 2rem;
    }
}
.nav-link {
    color: var(--htx-text);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}
.nav-link:hover {
    color: var(--htx-accent);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--htx-accent);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.menu-toggle-btn {
    display: block;
    background: none;
    border: none;
    color: var(--htx-text);
    font-size: 1.5rem;
    cursor: pointer;
}
@media (min-width: 768px) {
    .menu-toggle-btn {
        display: none;
    }
}
.mobile-menu {
    display: none;
    background: rgba(10, 14, 20, 0.98);
    border-top: 1px solid var(--htx-border);
    padding: 1rem;
    animation: slide-down 0.3s ease-out;
}
.mobile-menu.active {
    display: block;
}
.mobile-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    color: var(--htx-text);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}
.mobile-link:hover {
    background: var(--htx-accent);
    color: var(--htx-bg);
}
@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Main Title & Subtitle --- */
.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FF9940, #FFB366, #E67600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}
@keyframes titleGlow {
    from { filter: drop-shadow(0 0 20px rgba(255, 153, 64, 0.3)); }
    to { filter: drop-shadow(0 0 40px rgba(255, 153, 64, 0.6)); }
}
.subtitle {
    font-size: 1.25rem;
    color: var(--htx-text);
    font-weight: 300;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* --- Buttons --- */
.search-btn {
    padding: 20px 35px;
    font-size: 18px;
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, var(--htx-accent), var(--htx-accent-dark));
    color: white;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 153, 64, 0.3);
    text-decoration: none;
    display: inline-block;
}
.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}
.search-btn:hover::before {
    left: 100%;
}
.search-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 153, 64, 0.5);
    filter: brightness(1.1);
}
.search-btn:active {
    transform: translateY(-1px);
}
.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(50%);
}

/* --- Sections --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 4rem 1.5rem;
    position: relative;
}
.content-section {
    padding: 4rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3rem;
    text-align: center;
}
.section-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--htx-border), transparent);
    margin: 4rem auto;
}
.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.social-icon {
    color: var(--htx-text);
    font-size: 2rem;
    transition: all 0.3s ease;
}
.social-icon:hover {
    color: var(--htx-accent);
    transform: scale(1.1) translateY(-2px);
}

/* --- Player/Content Card --- */
.player-card {
    background: var(--htx-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--htx-border);
    padding: 40px;
    border-radius: 25px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: left;
    position: relative;
    overflow: hidden;
}
.player-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 153, 64, 0.1), transparent, rgba(76, 175, 80, 0.05), transparent);
    transition: opacity 0.8s ease;
    opacity: 0;
    z-index: 0;
    animation: rotateGlow 20s linear infinite;
}
.player-card:hover::before {
    opacity: 1;
}
@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.player-card.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
}
.player-card > * {
    position: relative;
    z-index: 1;
}

/* --- Grids --- */
.grid-3-col {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .grid-3-col { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-3-col { grid-template-columns: repeat(3, 1fr); }
}
.grid-4-col {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .grid-4-col { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-4-col { grid-template-columns: repeat(4, 1fr); }
}

/* --- Game Card Specifics --- */
.game-card {
    display: flex;
    flex-direction: column;
    text-align: center;
}
.game-card.disabled {
    filter: grayscale(80%);
    opacity: 0.7;
}
.game-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.game-tagline {
    color: var(--htx-accent);
    margin-bottom: 1rem;
    font-weight: 500;
}
.game-description {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--htx-text);
}
.card-btn {
    margin-top: auto;
    width: 80%;
    align-self: center;
    padding: 15px 20px;
    font-size: 16px;
}

/* --- Features Section --- */
.feature-container {
    padding: 3rem;
}
.feature-item {
    text-align: center;
}
.feature-icon {
    font-size: 3rem;
    color: var(--htx-accent);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 153, 64, 0.4);
    transition: transform 0.3s ease;
}
.feature-item:hover .feature-icon {
    transform: scale(1.1) translateY(-5px);
}
.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}
.feature-description {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Team Section --- */
.team-card {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid var(--htx-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    image-rendering: pixelated;
    transition: all 0.4s ease;
}
.team-card:hover .team-avatar {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--htx-accent);
    box-shadow: 0 15px 35px rgba(255, 153, 64, 0.3);
}
.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.team-role {
    color: var(--htx-accent);
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.team-description {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Join Section --- */
.join-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
}
.join-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}
.join-description {
    margin-bottom: 2rem;
    color: var(--htx-text);
}

/* --- Footer --- */
.footer {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--htx-border);
    margin-top: 4rem;
    padding: 3rem 1.5rem 2rem 1.5rem;
    color: var(--htx-text);
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
    text-align: left;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        text-align: left;
    }
}
.footer-about .logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}
.footer-about p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.footer-socials {
    display: flex;
    gap: 1rem;
}
.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a {
    color: var(--htx-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--htx-accent);
}
.footer-copyright {
    border-top: 1px solid var(--htx-border);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* --- Copy Tooltip --- */
.copy-tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--htx-success);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    pointer-events: none;
}
.copy-tooltip.show {
    opacity: 1;
    bottom: 40px;
}