*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* explicit transitions only where needed (was a global * transition) */
a, button, .btn, .nav-link, .feature, .img-container img, .header,
.feature-icon, .feature-icon img { transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
html {
}
body { 
	height: 100vh; 
	font-family: 'Rubik', sans-serif !important;
	background-color: #020a13  !important;
	background-image: url(../images/backgrounds/hero.jpg); 
	background-repeat: no-repeat; 
	background-size: cover; 
}

body.dark-mode svg {
    filter: none !important; /* Evita la inversión de colores en SVG */
}


.flex-1 {
	flex: 1;
}

.global-padding {
	max-width: 1440px; 
	padding: 30px 4%;
}

/* ---------- SECTIONS -------------- */

/* HERO */
#hero {
	justify-content: start;
	margin-top: 140px;
}

.hero-section {
	background-color: #020a13;
	/* dark radial vignette over the photo to lift the logo + copy off the bg */
	background-image:
		radial-gradient(ellipse 60% 55% at 50% 45%,
			rgba(0, 0, 0, 0.75) 0%,
			rgba(0, 0, 0, 0.4) 38%,
			rgba(0, 0, 0, 0) 70%),
		url(../images/backgrounds/hero_bg.jpg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	height: 100%;
}

/* NAV */
.hero-section .container {
	max-width: 1850px;
	padding: 30px 5%;
	height: 100%;
}

button.discord_button {
	background-color: #5865f2;
	border: #5865f2 1px solid;
	padding: 3px 12px 1px 7px;
	display: flex;
    align-items: center;
}
button.discord_button:hover {
	background-color: #4955d4;
	border: #4955d4 1px solid;
}

/* Back-to-top — subtle circular button, fades in once you scroll */
.back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(64, 196, 255, 0.35);
	background: rgba(3, 8, 14, 0.55);
	color: #cfe9ff;
	font-size: 24px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	/* visibility delayed by the fade duration so the hide animates out instead of cutting */
	transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease, visibility 0s linear 0.3s;
	z-index: 1050;
}
.back-to-top.visible {
	opacity: 0.65;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease, visibility 0s;
}
.back-to-top.visible:hover {
	opacity: 1;
	background: rgba(64, 196, 255, 0.18);
	border-color: rgba(64, 196, 255, 0.7);
}

/* Header */
.header {
	height: 102px;
	transition: height 0.3s ease-in-out, background 0.3s ease-in-out;

	button.play {
		display: none;
	}
  }
/* veil that fades behind the navbar — short on 1080p so it ends above the hero logo,
   restored to 280px on viewports wider than 1080p where the logo has more breathing room */
.header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 140px;
	background: linear-gradient(180deg, rgba(2, 8, 16, 0.95) 0%, rgba(2, 8, 16, 0.6) 45%, rgba(2, 8, 16, 0) 100%);
	pointer-events: none;
	z-index: -1;
	opacity: 1;
	transition: opacity 0.35s ease;
}
@media (min-width: 1921px) {
	.header::before { height: 280px; }
}
/* fade the veil out as the shrink background fades in (avoids a flicker) */
.header.shrink::before { opacity: 0; }
.header.shrink {
	background-color: #03080e !important; /* Cambia el color opcionalmente */
	background-image: none;
	height: 70px;

	button.play {
		display:block;
	}
}

.header.shrink::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 120%;
	height: 6px;
	pointer-events: none;
	z-index: -1;
	bottom: -2px;
  	background: radial-gradient(
    ellipse at center,
    #0424c0 0%,
	/* rgba(203, 238, 255, 0.219) 0%, */
    rgba(4, 36, 162, 0.1) 30%,
    rgba(255, 255, 255, 0) 60%,
    transparent 100%
  );
}

.btn.dropdown-toggle {
	display: flex;
	align-items: center;
}


img.logo {
	width: 450px;
	height: auto;
}

/* isologo (footer) — same display size the SVG had (~33x35) */
img.isologo {
	height: 35px;
	width: auto;
}

/* isologo in the header */
.logo img.isologo {
	height: 50px;
}

button.primary {
	border: #3eb2e0 1px solid;
	color: #1a1a1a;
	font-size: 16px;
	font-weight: 600;
	background-color: #3eb2e0;
	border-radius: 4px;
	padding: 8px 20px;	
}
button.primary.large_btn {
	padding: 12px 24px;
	font-size: 18px;
}
button.primary:hover {
	border: #21b2f5 1px solid;
	background-color: #37a4cf;
	color: #1a1a1a;
}


/* Links */
.navbar-expand-lg .navbar-nav .nav-link {
	color: #f2f2f2;
	position: relative;
}
.navbar-expand-lg .navbar-nav .nav-link:hover,
.navbar-expand-lg .navbar-nav .nav-link.active {
	color: #40C4FF;
}
.navbar-expand-lg .navbar-nav .nav-link.active::before {
	background: -webkit-linear-gradient(90deg, #0424D9 0%, #07F2F2 50%, #0424D9 100%); /* Para Safari y versiones antiguas de Chrome */
	background: -moz-linear-gradient(90deg, #0424D9 0%, #07F2F2 50%, #0424D9 100%);    /* Para Firefox */
	background: -o-linear-gradient(90deg, #0424D9 0%, #07F2F2 50%, #0424D9 100%);      /* Para Opera */
	background: linear-gradient(90deg, #0424D9 0%, #07F2F2 50%, #0424D9 100%);         /* Versión estándar */
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 30px;
	height: 1px;
	bottom: -15px;
}

/* HERO */
.hero-section {
	.absolute_hero_left,
	.absolute_hero_right {
		position: absolute;
		transform: rotate(-90deg);
  		transform-origin: center;
		top: 50%;
		color: #fff;
		font-size: 14px;
		color: #3b8ffc;
	}
	.absolute_hero_left { 
		left: 5%;
	}
	.absolute_hero_right { 
		right: 5%;
	}
}

.hero-content {
	color: #fff;
	/* max-width: 800px; */
	max-width: 690px;
	text-align: center;

	img {
		margin-bottom: 18px;
	}

	.hero_text {
		gap: 30px;

		p {
			font-size: 20px;
			font-weight: 300;
			margin-bottom: 0;

			span {
				font-weight: 500;
			}
		}
	}

	h1 {
		font-size: 36px;
	}

}

/* Titles — centered variant (testing). Revert this block to restore the
   left/right-aligned uppercase titles with the side-anchored line. */
.main_title,
.main_title_right {
	position: relative;
	z-index: 1;
	color: #e4e4e4;
	text-align: center;
	font-weight: 300; /* light base; the accent part carries the weight */
	font-size: 38px !important; /* override Bootstrap .h2 */
	margin-top: 2.25rem;         /* breathing room above each title */
}
/* titles that sit right under preceding content need extra separation */
.main_title.title-spaced,
.main_title_right.title-spaced {
	margin-top: 3.5rem;
}
/* larger gap below these titles, before the content that follows */
.main_title.title-mb,
.main_title_right.title-mb {
	margin-bottom: 3rem !important;
}
/* direct child only — NOT the inner .t-light / .t-accent spans, otherwise the
   underline would be drawn three times (once per nested span) */
.main_title > span,
.main_title_right > span {
	position: relative;
	display: inline-block;
	white-space: nowrap; /* keep the whole title on a single line */
}
/* title made of two parts: a light lead-in + a bold gradient highlight */
.t-light {
	font-weight: 300;
}
.t-accent {
	font-weight: 400;
	background: linear-gradient(90deg, #4dd0e1 0%, #40c4ff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* hero tagline "Forge your legacy..." */
.hero_text [data-i18n="forge"] {
	font-weight: 400 !important;
	font-size: 37px !important;
}

/* ---- Section title: colored kicker + solid heading + subtitle ---- */
.title-kicker {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	margin-bottom: 0.7rem;
	background: linear-gradient(90deg, #4dd0e1, #40c4ff);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.title-head {
	display: block;
	font-weight: 500;
	line-height: 1.12;
	color: #f4f7fb;
	white-space: nowrap;
}
/* thin centered gradient line between the title and the subtitle */
.title-head::after {
	content: "";
	display: block;
	width: 96px;
	height: 1px;
	margin: 0.95rem auto 0;
	background: linear-gradient(to right,
		rgba(64, 196, 255, 0) 0%,
		rgba(64, 196, 255, 0.9) 50%,
		rgba(64, 196, 255, 0) 100%);
}
.title-sub {
	display: block;
	max-width: 540px;
	margin: 0.7rem auto 0;
	font-size: 1.05rem;
	font-weight: 300;
	line-height: 1.5;
	color: #97a8bd;
}
@media (max-width: 767.98px) {
	.main_title.h2,
	.main_title_right.h2 { font-size: 26px !important; }
	.title-head { white-space: normal; }
	.title-sub { font-size: 0.95rem; }
}
/* thin centered underline: bright in the middle, fading out toward both ends */
.main_title > span::after,
.main_title_right > span::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 96px;
	height: 1px;
	pointer-events: none;
	z-index: -1;
	bottom: -13px;
	background: linear-gradient(
		to right,
		rgba(64, 196, 255, 0) 0%,
		rgba(64, 196, 255, 0.9) 50%,
		rgba(64, 196, 255, 0) 100%
	);
}


/* Main section */
.section_spacing {
	padding: 60px 0;
}

.section_content {
	.subheading {
		border-left: #2E8AB8 2px solid;
	}
	.subheading_end {
		border-right: #2E8AB8 2px solid;
	}
}

img.screenshots {
	/* border: 5px black solid; */
    /* box-shadow: #000000 0px 0px 13px; */
	filter: drop-shadow(0px 0px 13px #000000);
}

.gradient {
	background-color: black;

	background-image: linear-gradient(45deg, #4dd0e1, #2196f3, #1565c0);

	background-size: 100%;
	background-repeat: repeat;

	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent; 
	-moz-background-clip: text;
	-moz-text-fill-color: transparent;

	font-weight: 300;
}


/* JUmbotron */
.jumbotron.join { 
	background-color: black !important;
	background-image: url(../images/backgrounds/hero.jpg); 
	background-repeat: no-repeat; 
	background-size: cover; 	
	overflow: hidden;
}

/* Features */
/* extra breathing room above the "unleash" block — padding (not margin) keeps
   the same bg as the block above, so no contrasting band shows through */
.unleash-gap {
	padding-top: 3rem;
	padding-bottom: 3rem;
}
@media (min-width: 768px) {
	.unleash-gap {
		padding-top: 5.5rem;
		padding-bottom: 5.5rem;
	}
}

.features_description {
	position: relative;
	overflow: hidden;
	background-color: #03070f;
	background-image:
		radial-gradient(ellipse at 18% 12%, #0d1527 0%, transparent 55%),
		radial-gradient(ellipse at 85% 78%, rgba(138, 116, 255, 0.13), transparent 50%);
}
/* keep page content above the star layers */
.features_description > .container,
.features_description > .container-fluid {
	position: relative;
	z-index: 1;
}
/* CSS-drawn star layers (dots rendered via box-shadow in JS) */
.css-stars {
	position: absolute;
	left: 0;
	top: -50%;
	width: 100%;
	height: 200%;
	z-index: 0;
	pointer-events: none;
	will-change: transform;
}
.star-dots {
	position: absolute;
	top: 0;
	left: 0;
	border-radius: 50%;
	background: transparent;
}

/* Carousel */
.carousel {
	margin-bottom: 80px !important
}
.carousel .card {
	background: #060f18f5;
    border: none;
	/* border: 1px solid #25384d; */
	/* border: 1px solid #021969; */
	border-radius: 3px !important;
}
.carousel .card-title {
	font-size: 24px !important;
	font-weight: 400;
	color: rgb(67 178 233);
	padding-top: 10px;
}
.carousel .card-text {
	font-size: 16px !important;
	font-weight: 300;
	color: #d4d4d4;
	padding-bottom: 20px;
	padding-top: 10px;
}

.card-body {
	min-height: 245px;
}

.gradient-text {
  /* Gradiente de ejemplo */
  background: linear-gradient(
    90deg,
    #00d2ff,
    #3a7bd5
  );

  /* Máscara para que el gradiente se aplique al texto */
  -webkit-background-clip: text;
  background-clip: text;

  /* Hace el texto transparente para que se vea el gradiente */
  -webkit-text-fill-color: transparent;
  color: transparent;

  display: inline-block;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: none !important;
}


/* Cards */

.feature.col .feature-icon {
	border-radius: 3px;
	/* width: 50px;
	height: 50px; */
	img {
		width: 40px;
		height: 40px;
	}
}

/* very subtle card container for the "unleash your potential" feature cards.
   The visual lives on an inner .feature-card so the Bootstrap gutter (equal on
   both axes) stays as the visible gap. radius = buttons (4px). */
#custom-cards .feature-card h3 {
	line-height: 1.4;
}
#custom-cards .feature-card {
	height: 100%;
	background: rgba(255, 255, 255, 0.022);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 4px;
	padding: 28px;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
	transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
#custom-cards .feature:hover .feature-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(64, 196, 255, 0.18);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

/* .feature.col .bg-primary.bg-gradient {
	background-image: linear-gradient(0deg, #4dd0e1, #2196f3, #1565c0) !important;
} */

footer {
	background-color: #020a13;
}


@media (max-width: 1023.99px) { 

	body { 
		background-size: auto; 
	}
	h1 {
        font-size: 30px !important;
    }
	.hero-section .container {
		max-width: 1850px;
		padding: 0 5%;
		height: 100%;
	}
	.absolute_hero_left,
	.absolute_hero_right {
		display: none;
	}
	img.logo {
		width: 260px;
		height: auto;
	}

	.hero-section {
		height: auto;
		min-height: calc(100vh - 60px);
	}
	#hero {
		margin-top: 110px;
		padding-bottom: 48px;
	}

	.navbar-toggler {
		display: none;
	}
	.header {
    	height: 60px;
	}

	ul.nav {
		display: none;
	}
	img.logo { 
		width: 70%;
	}

	.main_title > span::after,
	.main_title_right > span::after {
		width: 96px;
	}
	button.primary.large_btn {
		padding: 8px 16px;
		font-size: 16px;
	}
	button.discord_button {
		background-color: rgb(88, 101, 242);
		border: 1px solid rgb(88, 101, 242);
		padding: 1px 8px 0 4px;
		font-size: 12px;
	}

	.main_title,
	.main_title_right {
		font-size: 28px;
	}

	.global_padding {
		max-width: 1440px; 
		padding: 30px 0 !important;
	}
	.section_spacing {
		padding: 0;
	}
	.carousel {
		margin-bottom: 30px !important;
	}
	.feature.col .feature-icon {
		border-radius: 3px;
		/* width: 50px;
		height: 50px; */
		img {
			width: 30px;
			height: 30px;
		}
	}
	.carousel .card-title {
		margin-bottom: 0 !important;
	}

	/* Font sizes */
	.text.fs-2 {
		font-size: 20px !important;
	}
	.text.fs-5 {
		font-size: 16px !important;
	}
	.text-description.fs-5,
	.text-description.fs-6 {
		font-size: 14px !important;
	}
}





@media (orientation: landscape) and (min-height: 700px) {
	#hero {
	  justify-content: center;
	  margin-top: 0;
	}
}
  

/* Container for the entire carousel */
.multi-carousel-container {
  cursor: grab;
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

/* Cursor styles for dragging */
.multi-carousel-container.dragging,
#multiCarousel.dragging {
  cursor: grabbing;
}

/* Wrapper for all slides */
.multi-carousel-inner {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Individual slide */
.multi-carousel-item,
.clone {
  box-sizing: border-box;
  flex: 0 0 25%;
  padding: 0 5px;
  position: relative; /* Essential for item-number positioning */
}

/* Control buttons */
.multi-carousel-control-prev,
.multi-carousel-control-next {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  position: absolute;
  text-decoration: none;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
  width: 40px;
  z-index: 10;
}

.multi-carousel-control-prev:hover,
.multi-carousel-control-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.multi-carousel-control-prev {
  left: 10px;
}

.multi-carousel-control-next {
  right: 10px;
}

/* Image container with dynamic height */
.img-container {
  /* border-radius: 1.5rem; */
  /* height: var(--carousel-height, 80vh); */
  overflow: hidden;
  position: relative;
}

/* Image styling */
.img-container img,
#carouselInner img {
  height: auto;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
  user-drag: none;
  width: 100%;
  -webkit-user-drag: none;
  transition: transform 0.3s ease;
}

.img-container:hover img {
  transform: translateZ(0) scale(1.02);
}

/* Item number styling - guaranteed visibility */
.item-number {
  align-items: center;
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 0;
  display: inline-flex;
  font-size: 120%;
  font-weight: bold;
  height: 35px;
  justify-content: center;
  left: 1rem;
  position: absolute;
  top: 1rem;
  width: 35px;
  z-index: 2; /* Higher than default but below controls */
  /* Isolation prevents z-index context issues */
  isolation: isolate;
}

/* Carousel cursor styling */
#multiCarousel {
  cursor: grab;
  touch-action: pan-y;
}

/* Disable text selection during drag */
#multiCarousel.dragging {
  user-select: none;
  -webkit-user-select: none;
}

/* Responsive adjustments for screens smaller than 720px (45em) */
@media (max-width: 45em) {
  .multi-carousel-item,
  .clone {
    flex: 0 0 100%;
  }
}


/* ---------- MOTION (Phase 1) ---------- */

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.reveal-left  { transform: translateX(-48px); }
.reveal.reveal-right { transform: translateX(48px); }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero entrance (staggered on load) */
.hero-content .logo,
.hero-content .hero_text > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content .logo { animation-delay: 0.15s; }
.hero-content .hero_text > *:nth-child(1) { animation-delay: 0.35s; }
.hero-content .hero_text > *:nth-child(2) { animation-delay: 0.50s; }
.hero-content .hero_text > *:nth-child(3) { animation-delay: 0.65s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Accessibility: respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* ---------- MOTION (Phase 2: living background) ---------- */

/* Starfield canvas sits behind the hero content */
/* hero sits on its own layer so the fixed navbar (nested inside it) paints
   above the sections that follow it in the DOM */
.hero-section { position: relative; overflow: hidden; z-index: 1000; }
.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-section .container { position: relative; z-index: 1; }

/* Glow / pulse on the primary CTA (Play Now) */
.btn.primary.large_btn {
  position: relative;
  background-color: #2dc3ff;
  border-color: #2dc3ff;
  /* Bootstrap's .btn transition omits transform (and loads after us), so the
     hover lift jumps — re-declare a transition that includes transform. */
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.3s ease,
              border-color 0.3s ease;
}
/* hover glow lives on a pseudo so it fades in smoothly, independent of the pulse */
.btn.primary.large_btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 24px 2px rgba(62, 178, 224, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}
.btn.primary.large_btn:hover {
  transform: translateY(-2px);
  background-color: #2dc3ff; /* keep the same color on hover (no darkening) */
  border-color: #2dc3ff;
}
.btn.primary.large_btn:hover::after { opacity: 1; }


/* ---------- MOTION (Phase 3: micro-interactions) ---------- */

/* Feature cards: lift + icon glow on hover */
.feature:hover { transform: translateY(-6px); }
.feature .feature-icon img { transition: transform 0.3s ease, filter 0.3s ease; }
.feature:hover .feature-icon img {
  transform: scale(1.12);
  filter: drop-shadow(0 0 10px rgba(64, 196, 255, 0.7));
}

/* Section title gradient line draws in when the title reveals */
.main_title > span::after,
.main_title_right > span::after {
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.main_title.is-visible > span::after,
.main_title_right.is-visible > span::after { transform: translateX(-50%) scaleX(1); }

/* Smoother header shrink */
.header { transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease; }


/* ---------- MOTION (Phase 5: card tilt, animated gradient, glass header) ---------- */

/* Carousel card 3D tilt + glow (transform set inline by JS) */
.carousel .card {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.carousel .card.tilting {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(64, 196, 255, 0.35);
}

/* Animated gradient text (carousel titles) */
.gradient-text {
  background: linear-gradient(90deg, #00d2ff, #3a7bd5, #00d2ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientShift 6s linear infinite;
}
@keyframes gradientShift { to { background-position: 200% center; } }

/* Glassmorphism header when shrunk */
.header.shrink {
  background-color: rgba(3, 8, 14, 0.72) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* ---------- Mobile menu (Phase 6) ---------- */
.mobile-menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1023.99px) {
  .mobile-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #f2f2f2;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1040;
    padding: 8px 5% 18px;
    gap: 2px;
    background: rgba(3, 8, 14, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(64, 196, 255, 0.18);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-menu .nav-link {
    color: #f2f2f2;
    padding: 13px 4px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .mobile-menu .nav-link:hover { color: #40c4ff; }
}


/* ---------- Gameplay trailer (Phase 8) ---------- */
.video-embed {
  position: relative;
  width: 100%;
  margin: 32px 0 56px;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(102, 121, 251, 0.3);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.55);
}
.video-embed .video-thumb,
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 78px;
  height: 78px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(62, 178, 224, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play::before {
  content: "";
  display: block;
  margin-left: 6px;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #03121b;
}
.video-embed:hover .video-play {
  transform: scale(1.08);
  background: #3eb2e0;
  box-shadow: 0 0 30px rgba(62, 178, 224, 0.7);
}
@media (max-width: 767.98px) {
  /* smaller play button on phones */
  .video-play { width: 52px; height: 52px; }
  .video-play::before { border-width: 9px 0 9px 15px; margin-left: 4px; }
  /* more separation between the "command your universe" content blocks */
  #game .content { margin-bottom: 2.5rem !important; }
}


/* ---------- Steam secondary CTA (Phase 7) ---------- */
.steam_button {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 9px;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  color: #cfe0ff;
  text-decoration: none;
  background: rgba(102, 121, 251, 0.08);
  border: 1px solid rgba(102, 121, 251, 0.5);
}
.steam_button .bi-steam { font-size: 19px; }
.steam_button:hover {
  color: #fff;
  background: rgba(102, 121, 251, 0.2);
  border-color: #6d79fb;
  box-shadow: 0 0 18px rgba(102, 121, 251, 0.35);
  transform: translateY(-2px);
}
.steam_chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 18px;
}
/* stat-style chips: bold gradient value on top, muted label below, with a
   thin gradient divider between each */
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px 24px;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom,
    transparent, rgba(140, 160, 255, 0.4), transparent);
}
.stat-value {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(90deg, #4dd0e1, #40c4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat-label {
  font-size: 16px;
  font-weight: 400;
  color: #9fb0c3;
  white-space: nowrap;
}
@media (max-width: 1023.99px) {
  /* header is only 60px here, so shorten the veil so it doesn't reach/darken the logo */
  .header::before { height: 130px; }
  .steam_button { font-size: 14px; padding: 8px 16px; }
  .stat { padding: 2px 16px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 12px; }
}
/* very small screens: 2 x 2 grid */
@media (max-width: 359.98px) {
  .steam_chips { flex-wrap: wrap; row-gap: 12px; }
  .stat { flex: 0 0 50%; }
  /* the 3rd chip starts the second row, so its leading divider would be orphaned */
  .stat:nth-child(3)::before { display: none; }
}


/* ---------- Server selector ---------- */
/* The web and the Steam realms are separate worlds with separate accounts, so
   both entry points carry the same weight instead of one CTA plus a footnote. */
.realm-picker { width: 100%; max-width: 660px; margin: 4px auto 0; }

.realm-picker-kicker {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 18px;
	background: linear-gradient(90deg, #4dd0e1, #40c4ff);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.realm-cards { display: flex; gap: 16px; align-items: stretch; }
.realm-card {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	padding: 26px 22px;
	text-align: center;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 4px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.realm-card:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(64, 196, 255, 0.3);
	transform: translateY(-3px);
}

.realm-name {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 500;
	color: #f4f7fb;
	margin-bottom: 12px;
}
.realm-badge {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 3px;
	color: #061018;
	background: linear-gradient(90deg, #4dd0e1, #40c4ff);
}
/* the tag selector is required: `.hero-content .hero_text p` sets margin-bottom 0
   and font-size 20px, and it outranks a bare class */
.realm-card p.realm-launch {
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
	color: #cdd7e4;
	margin: 0 0 28px;
}
/* keeps both buttons on a common baseline even if one card grows */
.realm-actions { margin-top: auto; }
/* nowrap keeps both buttons the same height: the Chinese label used to wrap to a
   second line and left the two cards uneven */
.realm-actions .btn.primary { width: 100%; white-space: nowrap; }

.realm-picker p.realm-note {
	margin: 22px 0 0;
	text-align: center;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #b8c5d4;
}

@media (max-width: 767.98px) {
	.realm-cards { flex-direction: column; }
}