:root {
    --primary-color: #6b46c1;
    --secondary-color: #9f7aea;
    --background-dark: #1a1a2e;
    --text-light: #ffffff;
    --text-glow: #00ffff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
    --success-color: #4CAF50;
    --timeline-color: #6b46c1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--background-dark);
  color: var(--text-light);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

@font-face {
    font-family: 'Minecraft';
    src: url('../font/Minecraft.otf') format('opentype');
}

.minecraft-font, .minecraft-font-thuong {
    font-family: 'Minecraft', 'Open Sans', sans-serif !important;
}

.minecraft-font {
    animation: glow 2s infinite;
    text-shadow: 0 0 10px var(--text-glow);
}

.minecraft-font-thuong {
    animation: none !important;
    text-shadow: none !important;
}


section {
    padding: 80px 20px;
    position: relative;
}

.section-title {
    height: 100px;
    margin-top: -70px;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px !important;
    color: var(--text-light);
    text-shadow: 0 0 10px var(--text-glow);
}


.hero {
  position: relative;
  min-height: 100vh;
  height: auto;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background: #000;
  z-index: 1;
  box-sizing: border-box;
  padding: 40px 20px;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 0 0 20px var(--text-glow);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

.world-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

.world-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px var(--text-glow);
  background: rgba(255, 255, 255, 0.15);
}

.world-card {
  width: 100%;
  max-width: 350px;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  font-size: 0.95rem;
}

.world-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.world-card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.world-card .card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.explore-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.explore-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 10px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(107, 70, 193, 0.2);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}


.gallery-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(107, 70, 193, 0.2);
    backdrop-filter: blur(10px);
}

.gallery-container {
    display: flex;
    transition: transform 0.5s ease;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.gallery-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 100% !important;
    min-height: 300px !important;
    background: #222 !important;
    position: relative !important;
    flex: 0 0 100%;
}

.gallery-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 20px rgba(107, 70, 193, 0.3);
}

.gallery-slide img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    opacity: 1 !important;
    object-fit: contain !important;
    background: #222 !important;
    transition: transform 0.3s ease;
}

.gallery-slide:hover img {
    transform: scale(1.02);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1.1);
    background: rgba(107, 70, 193, 0.8);
    color: var(--text-light);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 2;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px var(--text-glow);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.connect-info {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: auto;
    background: rgba(40, 40, 70, 0.6);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 0 40px rgba(120, 100, 255, 0.3);
    backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.connect-info.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.connect-info:hover {
    opacity: 1;
}

.connect-info .arrow-btn {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    animation: bounce 1s infinite;
    z-index: 2000;
    display: none;
}

.connect-info .arrow-btn:hover {
    color: #00ffff;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.connect-info:hover .arrow-btn {
    display: none;
}

.connect-glow-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2cm;
    height: 4px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    z-index: 999;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.connect-glow-bar.show {
    opacity: 1;
    pointer-events: auto;
    animation: glowBarPulse 1.8s infinite ease-in-out;
}

@keyframes glowBarPulse {
  0%, 100% {
    opacity: 0.4;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleX(1.2);
  }
}

.connect-info {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.connect-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.server-info {
    margin-bottom: 30px;
}

.highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 50px 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.button-container:hover {
    box-shadow: 0 8px 30px rgba(107, 70, 193, 0.6);
}

.connect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 55px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(107, 70, 193, 0.3);
  transition: all 0.3s ease;
}

.connect-btn i {
  font-size: 32px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), margin-right 0.3s ease;
}

.connect-btn span {
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateX(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    max-width 0.4s ease;
}

.connect-btn:hover {
  width: 230px;
  box-shadow: 0 0 20px rgba(107, 70, 193, 0.6), 0 0 10px var(--text-glow);
}

.connect-btn:hover i {
  transform: scale(0.95) translateX(-4px);
  margin-right: 6px;
}

.connect-btn:hover span {
  opacity: 1;
  transform: translateX(0);
  max-width: 160px;
}

.connect-btn:focus,
.connect-btn:active {
  outline: none;
  text-decoration: none;
}

.footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
    text-align: center;
}

.social-links {
    margin-bottom: 20px;
}

.social-link {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--text-glow);
    transform: translateY(-3px);
}


.timeline {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.7));
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 90%;
    background: var(--timeline-color);
    top: 10px;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--timeline-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 10px var(--text-glow);
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    position: relative;
    margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 55%;
}

.timeline-content h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.timeline-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.timeline-content ul li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}


.server-status {
    margin-bottom: 20px;
    text-align: center;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--card-bg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 12px;
    height: 12px;
    background: var(--success-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--success-color);
    animation: pulse 2s infinite;
}

.online-count {
    font-size: 1.1rem;
    color: var(--text-light);
}

.ip-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ip-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.ip-box h4 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.copy-ip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
}

.ip-text {
    color: var(--text-light);
    font-family: monospace;
    font-size: 1.1rem;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--text-glow);
    transform: scale(1.1);
}


@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}


@media (max-height: 700px) {
    .hero h1 {
        font-size: 3rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .server-logo {
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .world-cards,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .ip-container {
        grid-template-columns: 1fr;
    }

    .gallery-slider {
        padding: 10px;
    }

    .gallery-slide {
        height: 300px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-btn.prev {
        left: 15px;
    }

    .slider-btn.next {
        right: 15px;
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px var(--text-glow);
    }
    50% {
        text-shadow: 0 0 20px var(--text-glow);
    }
    100% {
        text-shadow: 0 0 10px var(--text-glow);
    }
}

.server-logo {
    width: 40vw;
    max-width: 400px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 20px #00eaff);
}

@media (max-width: 992px) {
    .server-logo {
        width: 48vw;
        max-width: 320px;
    }
}

@media (max-width: 600px) {
    .server-logo {
        width: 60vw;
        max-width: 240px;
    }
}

.scroll-arrow {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--text-glow);
  cursor: pointer;
  animation: bounce 1.5s infinite;
  z-index: 10;
  transition: all 0.3s ease;
}

.scroll-arrow:hover {
  transform: translateX(-50%) scale(1.2);
  color: #00ffff;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(26, 26, 46, 1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.discord-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.discord-container {
  width: 90%;
  max-width: 1000px;
  background: rgba(40, 40, 70, 0.6);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 0 40px rgba(120, 100, 255, 0.3);
  backdrop-filter: blur(6px);
}

.group-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #6b46c1;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 0 0 40px rgba(120, 100, 255, 0.3);
}

.admins-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.admin-owner {
  display: flex;
  justify-content: center;
  width: 100%;
  color: #FF5D3E;
  text-shadow: 0 0 5px #FF5D3E, 0 0 10px #F5B581, 0 0 20px #FF5D3E, 0 0 30px #F5B581;
  animation: neonBlink 1.5s ease-in-out infinite alternate;
}

@keyframes neonBlink {
  from { text-shadow: 0 0 5px #F5B581, 0 0 10px #FF5D3E, 0 0 20px #F5B581, 0 0 30px #FF5D3E; }
  to   { text-shadow: 0 0 10px #F5B581, 0 0 20px #F5B581, 0 0 30px #F5B581, 0 0 40px #F5B581; }
}

.admin-staff {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 60%;
}

.admin-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    width: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
}

.admin-avatar {
    width: 96px;
    height: 96px;
    border-radius: 0;
    border: 2px solid var(--primary-color);
    margin-bottom: 10px;
    image-rendering: pixelated;
    box-shadow: 0 0 6px var(--text-glow);
}

.admin-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.admin-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-top: 0;
}

.page-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-header h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #00c2ff;
}

.page-header p {
  color: #ccc;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

header, nav {
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.back-btn.bottom {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px auto 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #006b99, #0094cc);
  color: #dffaff;
  font-family: 'Minecraft', sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.menu-button {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  background: rgba(124, 58, 237, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
  transition: all 0.25s ease;
}

.menu-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.8);
  background: rgba(124, 58, 237, 0.3);
}

.menu-button:active {
  transform: scale(0.92);
  background: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.9);
}

.menu-button i {
  font-size: 1.3rem;
}

.floating-menu {
  position: fixed;
  top: 75px;
  right: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;

  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.25s ease;
}

.floating-menu.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.menu-item {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-item:hover {
  background: rgba(147, 51, 234, 0.25);
  transform: translateX(3px);
}

.floating-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

@media (max-width: 768px) {
    .connect-info,
    .connect-glow-bar {
        display: none !important;
    }
}

.connect-info,
.connect-glow-bar,
.menu-button,
.floating-menu {
  top: 10px !important;
}

@media (min-width: 769px) {
  .menu-button,
  .connect-info,
  .connect-glow-bar {
    top: 20px !important;
  }

  .floating-menu {
    display: none !important;
    top: 20px !important;
  }
}

@media (min-width: 769px) {
  .menu-button {
    top: 20px !important;
  }
}

@media (max-width: 768px) {
    .worlds {
        padding: 40px 10px;
        text-align: center;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 2.2rem;
    }

    .world-cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .world-card {
        width: 90%;
        padding: 20px 15px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(6px);
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }

    .world-card p {
        font-size: 0.9rem;
        line-height: 1.4rem;
    }

    .explore-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
  .world-cards,
  .features-grid,
  .admins-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    padding: 12px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
  }

  .world-cards > .world-card,
  .features-grid > .feature-item,
  .admins-container > .admin-card {
    flex: 0 0 80% !important;
    max-width: 90% !important;
    scroll-snap-align: center !important;
    margin: 0 !important;
  }

  .admins-container > .admin-card {
    flex: 0 0 72% !important;
    max-width: 85% !important;
  }

  .world-cards::-webkit-scrollbar,
  .features-grid::-webkit-scrollbar,
  .admins-container::-webkit-scrollbar {
      display: none;
      height: 0;
  }

  .world-cards,
  .features-grid,
  .admins-container {
      -ms-overflow-style: none;
      scrollbar-width: none;
  }

  .world-card, .feature-item, .admin-card {
    box-sizing: border-box !important;
    padding: 18px !important;
    border-radius: 12px !important;
  }

  .section-title {
    font-size: 1.6rem !important;
    line-height: 1.8rem !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

.admins-container {
  display: flex;
  flex-direction: column !important;
  align-items: center;
  width: 100%;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-owner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
.admin-owner, .admin-staff {
  width: 100% !important;
  justify-content: center;
  max-width: 1000px;
}

.admin-staff {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.5rem 1rem;
  width: 100%;
  -ms-overflow-style: none;
  scrollbar-color: #6b46c1 transparent;
}

.admin-staff::-webkit-scrollbar {
  height: 6px;
}
.admin-staff::-webkit-scrollbar-thumb {
  background: rgba(155, 100, 255, 0.25);
  border-radius: 50px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, border 0.3s ease;
}
.admin-staff::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  margin-inline: 6px;
}

.admin-card {
  flex: 0 0 auto;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-align: center;
  padding: 20px;
  transition: transform 0.2s ease;
}

.admin-card:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .admin-staff {
    scroll-snap-type: x mandatory;
  }
  .admin-card {
    scroll-snap-align: center;
  }
}

.floating-menu {
  top: 70px !important;
  right: 15px !important;
  z-index: 9998;
}

@media (min-width: 769px) {
    .menu-button,
    .floating-menu {
        display: none !important;
    }
}

.admin-card {
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.admin-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0);
  transition: background 0.25s ease;
}

.admin-card:hover::after {
  background: rgba(255, 255, 255, 0.04);
}

.worlds, .features, .discord, .admins-section {
  position: relative;
  width: 85%;
  margin: 100px auto;
  padding: 80px 60px 70px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.12);
  backdrop-filter: blur(20px);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--text-light);
  text-shadow: 0 0 10px var(--text-glow);
  margin-bottom: 50px;
  margin-top: 0;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 300px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--text-glow));
  border-radius: 4px;
  margin: 14px auto 0;
  box-shadow: 0 0 20px var(--text-glow);
  opacity: 0.95;
}

@media (max-width: 768px) {

  .worlds, .features, .discord, .admins-section {
    width: 92%;
    padding: 60px 25px 60px;
    border-radius: 18px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 35px;
  }

  .section-title::after {
    width: 60%;
    height: 3px;
  }

  .world-card, .feature-card, .admin-card, .discord-card {
    transform: scale(1);
    font-size: 0.95rem;
    padding: 16px;
  }

  .world-card img,
  .feature-card img,
  .admin-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .worlds > *, .features > *, .discord > *, .admins-section > * {
    text-align: center;
  }
}

.worlds {
  margin-top: 0px;
}

.features, .discord, .admins-section {
  margin-top: 80px;
}

#snow-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.login-modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  animation: fadeInBg 0.3s ease;
}

.login-box {
  background: rgba(25, 20, 40, 0.9);
  border: 1px solid rgba(155, 100, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(155, 100, 255, 0.3), 0 0 80px rgba(100, 50, 255, 0.1);
  padding: 40px 35px;
  width: 380px;
  text-align: center;
  animation: slideUp 0.35s ease-out;
  position: relative;
}

.login-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, #8e5cfb, #00ffff);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  pointer-events: none;
}

.login-box h2 {
  color: var(--text-light);
  text-shadow: 0 0 8px var(--secondary-color);
  margin-bottom: 25px;
  font-size: 1.4rem;
}

.form-group {
  text-align: left;
  margin-bottom: 20px;
}

.form-group label {
  color: #ccc;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: none;
  font-size: 15px;
  transition: all 0.25s;
}

.form-group input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(159, 122, 234, 0.5);
}

.login-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  width: 100%;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--secondary-color);
}

#loginMessage {
  margin-top: 12px;
  color: #ff7878;
  font-size: 14px;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.3);
}

@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

