body, html {
    margin: 0;
    padding: 0;
    font-family: "Play", sans-serif;
    background-color: #000000;

    -webkit-tap-highlight-color: transparent;
}



:root {
    /* Shared Colors */
    --miramtech-cyan-color:#c7fff5; /* var(--miramtech-cyan-color) */
    --miramtech-cyan-background:rgba(199,255,245,0.35); /* var(--miramtech-cyan-background) */
    --miramtech-cyan-half-background:rgba(199,255,245,0.05); /* var(--miramtech-cyan-half-background) */
} 

/* Scrollbar styling for Chrome, Safari, and newer versions of Edge */
::-webkit-scrollbar {
    width: 10px; /* Width of the vertical scrollbar */
}

::-webkit-scrollbar-track {
    background: #050708; /* Color of the scrollbar track */
}

::-webkit-scrollbar-thumb {
    background-color: #513f85; /* Color of the scrollbar thumb */
}

/* Scrollbar styling for Firefox */
* {
    scrollbar-width: thin; /* 'auto' or 'thin' */
    scrollbar-color: var(--miramtech-cyan-color) #000000; /* thumb and track color */
}

/* Optional: Scrollbar styling for IE and Edge legacy */
* {
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

* {
    box-sizing: border-box; /* Ensures width includes padding and borders */
}

textarea:focus, input:focus{
    outline: none;
}

h1, h2, h3, h4, h5 {
    font-weight: 500;
    color: #ffffff; /* Default color for all headings */
}

/* Custom styles for each heading level */
h1 {
    font-size: clamp(20px, 2.5vw, 40px); /* 40px if the base font size is 16px */
}

h2 {
    font-size: clamp(20px, 2.25vw, 30px); /* 32px */
}

h3 {
    font-size: 1.75em; /* 28px */
}

p {
   font-size: clamp(12px, 1.75vw, 24px); /* 32px */
}

h1 a, h2 a, h3 a {
    text-decoration: none;
    color: inherit; /* Inherit color from parent heading */
}


#topbar {
    background:rgba(0,0,0,1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px; /* Define a fixed height for the top bar */
    transition: background 0.3s ease;
}

.scrolled{
    background:rgba(0,0,0,0.75) !important;
    border-bottom: 1px solid var(--miramtech-cyan-background);
}

#topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px; /* Set max width to center the content */
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

#topbar .logo img {
    height: 58px;
}

.topbar-links {
    display: flex;
    gap: 40px; /* Increased gap for more space between links */
    height: 100%; /* Make the links container match the top bar's height */
}

.topbar-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9em;
    height: 100%; /* Make each link fill the container's height */
    display: flex;
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    position: relative; /* Needed for positioning the pseudo-element */
    transition: color 0.3s ease;
    min-width: 100px; /* Set a minimum width to avoid overlap */
    white-space: nowrap; /* Prevent text from wrapping */
    cursor:pointer;
}

.topbar-links a:hover {
    color: var(--miramtech-cyan-color);
    animation: flame-flicker 0.8s infinite alternate; /* Faster animation */
}

/* Underline effect specifically under each link text */
.topbar-links a::after {
    content: "";
    position: absolute;
    bottom: 0px; /* Position close to the text */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px; /* Thickness of the underline */
    background-color: var(--miramtech-cyan-color);
    transition: width 0.15s ease;
}

.topbar-links a:hover::after {
    width: 100%; /* Expands underline to match the text width on hover */
}

@keyframes flame-flicker {
    0% {
        text-shadow: 
            0 0 1.5px var(--miramtech-cyan-half-background),
            0 0 3px var(--miramtech-cyan-half-background),
            0 0 4px var(--miramtech-cyan-half-background),
            0 0 6px rgba(203, 184, 255, 0.6),
            0 0 9px rgba(203, 184, 255, 0.4),
            0 2.5px 7.5px rgba(203, 184, 255, 0.2); /* Lower shadow */
    }
    50% {
        text-shadow: 
            0 0 2.5px var(--miramtech-cyan-half-background),
            0 0 5px var(--miramtech-cyan-half-background),
            0 0 7.5px var(--miramtech-cyan-half-background),
            0 0 10px rgba(203, 184, 255, 0.75),
            0 0 12.5px rgba(203, 184, 255, 0.35),
            0 3.5px 10px rgba(203, 184, 255, 0.2); /* Lower shadow */
    }
    100% {
        text-shadow: 
            0 0 1.5px var(--miramtech-cyan-half-background),
            0 0 3px var(--miramtech-cyan-half-background),
            0 0 4px var(--miramtech-cyan-half-background),
            0 0 6px rgba(203, 184, 255, 0.6),
            0 0 9px rgba(203, 184, 255, 0.4),
            0 2.5px 7.5px rgba(203, 184, 255, 0.2); /* Lower shadow */
    }
}

.hamburger {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger .line {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}




#main_section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    background-color: #000;
}




.featured-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    color: #ffffff;
    min-height: calc(100vh - 60px);
    overflow: hidden;
    border-bottom: 1px solid var(--miramtech-cyan-background);
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Ensures full viewport height */
    object-fit: cover;
    opacity: 1; /* Ensures full visibility */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Top gradient */
        linear-gradient(to bottom, 
            rgba(0, 0, 0, 1) 0%, /* Dark at the top */
            transparent 10% /* Fades out by 10% */
        ),
        /* Circle gradient at the top-left corner */
        radial-gradient(circle at top left, 
            rgba(0, 0, 0, 0.85) 20%, /* Dark color in the center */
            transparent 70% /* Fades out at the edges */
        );
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 3px; /* Each gradient spans full height; lines repeat every 3px */
    background-repeat: no-repeat, no-repeat, no-repeat, repeat; /* Only the lines should repeat */
    z-index: 1;
    pointer-events: none;
}

.content-overlay {
    position: absolute;
    margin:auto;
    top:0px;
    bottom:0px;
    left:2%;
    z-index: 1;
    padding: 80px;
    border-radius: 10px;
    max-width: 800px;
    text-align: left;
}

.intro-heading {
    font-size: 2.75em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: #9accff 0px 0px 8px;
    text-align: left;
}

.intro-text {
    font-size: 0.85em;
    line-height: 1.5;
    margin: 0 auto;
    text-shadow: #9accff 0px 0px 8px;
    text-align: left;
}

.intro-highlight {
    font-size: 1.75em; /* Adjust the font size as desired */
    font-weight: bold;
    color: var(--miramtech-cyan-color); /* Adjust the color if needed */
    text-shadow: #9accff 0px 0px 8px; /* Add shadow for emphasis */
}

.scroll-down-button {
    font-size: 1.75em; /* Adjust the font size as desired */
    font-weight: bold;
    color: var(--miramtech-cyan-color); /* Adjust the color if needed */
    text-shadow: #9accff 0px 0px 8px; /* Add shadow for emphasis */
}

.scroll-down-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.intro-comment {
    color:rgba(255,221,130,0.75);
    text-shadow: none;
}

.intro-code {
    color:#ffffff;
    text-shadow: none;
}







.child-section {
    display: flex;
    width: 100%;
    height: 700px; /* Set a fixed height for sections */
    border-bottom: 1px solid var(--miramtech-cyan-background);
}

.img-column {
    flex: 5;
    display: flex;
    height: 100%; /* Ensures left column fills the section height */
}

.info-column {
    flex: 3;
    display: flex;
    flex-direction: column;
    padding: 40px;
    color: #ffffff;
    text-align: center;
}

.image-container-left {
    position: relative;
    width: 100%;
    height: 100%; /* Matches the height of the left-column */
    overflow: hidden;
    border-right: 1px solid var(--miramtech-cyan-background);
}

.game-image-left {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

.image-container-right {
    position: relative;
    width: 100%;
    height: 100%; /* Matches the height of the left-column */
    overflow: hidden;
    border-left: 1px solid var(--miramtech-cyan-background);
}

.game-image-right {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    object-fit: cover;
}

.original-image {
    opacity: 1;
}

.hover-image {
    opacity: 1;
    clip-path: circle(0% at 50% 50%);
}

.bottom-right-link {
    position: absolute;
    bottom: 10px; /* Distance from the bottom edge */
    right: 10px; /* Distance from the right edge */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    color: #fff; /* Text color */
    font-size: 12px; /* Font size */
    text-decoration: none; /* Remove underline */
    padding: 5px 10px; /* Add some padding */
    border-radius: 4px; /* Rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bottom-right-link:hover {
    background-color: rgba(199, 255, 245, 0.8); /* Lighter background on hover */
    color: #000; /* Dark text on hover */
}



.info-column h1 {
    font-weight: 700;
    margin-bottom: 10px;
}

.info-column p {
    line-height: 1.4;
}

.align-left {
    text-align: left;
    padding-right: 50px;
}

.align-right {
    text-align: right;
    padding-left: 50px;
}

.cta-button {
    background-color: #cbb8ff;
    color: #000;
    font-size: 1em;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ffffff;
    color: #000;
}


.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.studio-button {
    background-color: #4b7971;
}

.studio-button:hover {
    background-color: #609e93;
}

.x3js-button {
    background-color: #7300c4;
}

.x3js-button:hover {
    background-color: #8100dc;
}

.adglitch-button {
    background-color: #af0000;
}

.adglitch-button:hover {
    background-color: #d20000;
}

/* Active Menu Styles */
.hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}



#main_section {
   width: 100%;
}

#footer {
  background: #0c0c0c;
  color: #eee;
  padding: 40px 20px 30px;
  font-family: 'Play', sans-serif;
  border-top: 1px solid #2affcf;
}

.footer-top {
  text-align: center;
  margin-bottom: 30px;
}

.footer-top p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}

.footer-socials a {
  margin: 0 8px;
  font-size: 20px;
  color: #2affcf;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-socials a:hover {
  opacity: 0.7;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
}

.footer-col {
  flex: 1 1 220px;
  min-width: 180px;
}

.footer-columns {
  align-items: flex-start; /* ensures top alignment */
}

.footer-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #ffffff;
  border-bottom: 1px solid #2affcf;
  display: inline-block;
  padding-bottom: 4px;
}

.footer-col p,
.footer-col ul {
  font-size: 13px;
  color: #bbb;
  margin: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #2affcf;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 30px;
}

.footer-bottom p {
  color: #666;
  font-size: 13px;
  text-align: center;
  margin-top: 30px;
  text-shadow:
    1px 1px 0 #000,  /* bottom right shadow */
   -1px -1px 0 #1a1a1a; /* top left highlight */
  filter: brightness(0.9);
  font-weight: 500;
}


.footer-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin: 0 6px;
  filter: brightness(1.2);
  transition: filter 0.2s ease;
}

.footer-icon:hover {
  filter: brightness(1.5);
}

.footer-email {
  color: #fff;
  text-decoration: none;
}

.footer-email:hover {
  color: #2affcf;
}




#studio_section {
    width: 100%;
    background-color: #000000;
    padding: 40px 20px;
    text-align: center;
    color: #ffffff;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

#studio_section h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #bdffec;
}

#studio_section p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto;
    text-align: left;
    color: #cccccc;
    width: 100%;
}


.studio-container {
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack the items vertically */
    align-items: flex-start; /* Align items to the left */
    text-align: left; /* Override the inherited text alignment */
}

.back-button {
    margin-bottom: 20px; /* Add spacing below the button */
    padding: 8px 16px;
    background-color: rgba(189, 255, 236, 0.1);
    color: #bdffec;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid rgba(189, 255, 236, 0.25);
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-button:hover {
    background-color: rgba(189, 255, 236, 0.25);
    color: #ffffff;
}






#games_section {
   width: 100%;
   height: 100%;
   background-image: 
        /* Top gradient */
        linear-gradient(to bottom, 
            rgba(0, 0, 0, 1) 0%, /* Dark at the top */
            transparent 10% /* Fades out by 10% */
        ),
        /* Circle gradient at the top-left corner */
        radial-gradient(circle at top left, 
            rgba(0, 0, 0, 0.85) 20%, /* Dark color in the center */
            transparent 70% /* Fades out at the edges */
        );
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 3px; /* Each gradient spans full height; lines repeat every 3px */
    background-repeat: no-repeat, no-repeat, no-repeat, repeat; /* Only the lines should repeat */
    z-index: 1;
    background-color: #000f0b;
    min-height: 1200px;
}

#games_content_section {
   width: 100%;
   max-width: 1400px; /* Limit the maximum width */
   margin-left: auto; /* Center the section horizontally */
   margin-right: auto; /* Center the section horizontally */
}

.category-section {
   width: 100%;
   padding: 10px 20px;
   box-sizing: border-box;
   margin-bottom: 20px;
}

.category-section h2 {
   font-size: 28px;
   color: #bdffec;
   margin-bottom: 15px;
   text-align: left;
}

.category-section p {
   font-size: 16px;
   color: #cccccc;
   margin-bottom: 15px;
   text-align: left;
   word-wrap: break-word; /* Ensure long words break properly */
   overflow-wrap: break-word; /* Support breaking for modern browsers */
   white-space: normal; /* Allow text to wrap naturally */
}

.category-section .games-list {
   display: flex;
   flex-wrap: wrap;
   gap: 20px;
   justify-content: left;
}

.category-link {
    text-decoration: none; /* Remove underline */
    color: #bdffec; /* Match the color of the heading text */
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Smooth hover effects */
}

.category-link:hover {
    color: #ffffff; /* Highlight color on hover */
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.8); /* Glow effect on hover */
}

.game-item {
   display: flex; /* Align image and text side by side */
   align-items: flex-start; /* Align items to the top */
   border-radius: 8px;
   padding: 10px;
   font-size: 14px;
   color: #ffffff;
   border: 1px solid rgba(189, 255, 236, 0.25);
   background: rgba(0, 0, 0, 0.25);
   width: calc(50% - 10px);
   box-sizing: border-box;
}

/* Make the single game item full width */
.games-list > .game-item:only-child {
   width: 100%;
}

.game-item img {
   width: 200px; /* Fixed image width */
   height: 200px; /* Fixed image height */
   object-fit: cover; /* Ensure image fits properly */
   border-radius: 4px; /* Rounded corners for image */
   margin-right: 15px; /* Space between image and text */
   border:1px solid rgba(189,255,236,0.25);
   transition: border 0.3s ease;
}

.game-item img:hover {
    border:1px solid rgba(189,255,236,0.75);
}

.game-details {
   flex: 1; /* Allow text to take up the remaining space */
   display: flex;
   flex-direction: column; /* Stack text vertically */
   align-items: flex-start; /* Align text to the top */
   word-wrap: break-word; /* Ensure text wraps */
   overflow-wrap: break-word; /* Support for modern browsers */
}

.game-details h3 {
   margin: 0 0 10px;
   font-size: 16px;
   word-wrap: break-word;
   overflow-wrap: break-word;
}

.game-details p {
   margin: 0 0 10px;
   font-size: 14px;
   word-wrap: break-word;
   overflow-wrap: break-word;
   text-align: left;
}

.game-details  {
   color: #bdffec;
   font-size: 14px;
}

.play-button {
   display: inline-block; /* Make it a block-like element */
   color: #bdffec; /* Set text color */
   border:1px solid #bdffec;
   text-decoration: none; /* Remove underline */
   font-size: 14px;
   padding: 8px 16px; /* Add padding to make it look like a box */
   border-radius: 4px; /* Add rounded corners */
   text-align: center; /* Center-align text inside the box */
   transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
   margin-top: 10px; /* Add spacing above */
}

.play-button:hover {
   background: rgba(189,255,236,0.25); /* Change background color on hover */
   color: #ffffff; /* Change text color on hover */
}


.no-games {
   font-size: 16px;
   color: #cccccc;
   text-align: center;
   margin-top: 15px;
}










@media (max-width: 1300px) {
   .align-left {
       padding-right: 10px;
   }

   .align-right {
       padding-left: 10px;
   }
}

/* Media Query for Small Screens (Tablets and Smartphones) */
@media screen and (max-width: 768px) {
   #main_section {
       padding-left: 10px;
       padding-right: 10px;
   }

   #topbar .container {
      padding-left: 0px;
  }

  .topbar-links {
      display: none; /* Hidden by default */
      flex-direction: column; /* Stack links vertically */
      position: absolute;
      top: 60px;
      right: 0;
      width: 100%;
      border-top: 1px solid var(--miramtech-cyan-background);
      margin: 0; /* Remove any extra margin */
      padding: 0; /* Remove extra padding */
      height: auto; /* Allow height to adjust based on content */
      line-height: normal; /* Remove forced vertical alignment */
      gap:0;
   }

   .topbar-links.open {
       display: flex; /* Show menu when toggled */
   }

   .topbar-links a {
       display: block; /* Ensure links take full width */
       padding: 0; /* Remove any extra padding */
       height: 60px; /* Uniform height */
       line-height: 60px; /* Vertically center text */
       text-align: center; /* Center text horizontally */
       border-bottom: 1px solid var(--miramtech-cyan-background);
       color: #ffffff;
       font-size: 1em;
       font-weight: bold;
       text-decoration: none;
       background-color: #000; /* Ensure uniform background color */
       margin: 0; /* Remove any extra margin */
   }

   .topbar-links a:last-child {
       border-bottom: none; /* Remove border from the last item */
   }

   .hamburger {
       display: flex; /* Shown only on mobile */
   }

   .content-overlay {
       top:0px;
       bottom:0px;
       left:0px;
       right:0px;
       padding:40px;
   }

   .child-section {
       display: flex;
       flex-direction: column; /* Stack content vertically */
       width: 100%; /* Full width */
       height: auto; /* Let content define height */
   }

   .info-column {
       order: 2; /* Place text below the image */
       padding: 20px; /* Add some padding for spacing */
       text-align: center; /* Optional: Center-align text */
       padding-top: 0px;
   }

   .img-column {
       width: 100%; /* Full width */
       height: auto; /* Expand based on child content */
       display: block; /* Standard block flow */
   }

   .image-container-left, .image-container-right {
       width: 100%; /* Full width of parent container */
       max-width: 100vw; /* Prevent going beyond the viewport width */
       height: auto; /* Adjust height to fit content */
       display: flex; /* Flexbox to manage children */
       justify-content: center; /* Center content horizontally */
       align-items: center; /* Center content vertically */
       position: relative; /* Maintain context for child elements */
       min-height: 180px; /* Optional: Ensures visibility even without content */
       overflow: hidden; /* Prevent overflowing of children */
   }

   .game-image-left, .game-image-right {
       width: 100%; /* Scale image to fit the container width */
       max-width: 100vw; /* Prevent image from exceeding the viewport width */
       height: auto; /* Maintain aspect ratio */
       object-fit: cover; /* Ensure proper scaling and avoid distortion */
   }

   .align-left {
       padding-right: 5px;
   }

   .align-right {
       padding-left: 0px;
       padding-right: 5px;
       text-align: left;
   }

   .back-button {
       width: 100%; /* Make the button full width on smaller screens */
       text-align: center; /* Center-align the text inside the button */
       margin-bottom: 10px; /* Reduce the bottom margin on smaller screens */
   }

   .category-section {
       padding: 10px 15px;
   }

   .category-section h2 {
       font-size: 24px;
   }

   .category-section p {
       font-size: 14px;
   }

   .game-item {
       flex-direction: column; /* Stack image and text vertically */
       align-items: center; /* Center-align for smaller screens */
       width: 100%; /* Use full width */
   }

   .game-item img {
       margin-right: 0;
       margin-bottom: 10px; /* Space below image */
   }

   .game-details {
       align-items: center; /* Center text for smaller screens */
       text-align: center;
   }

   .games-list {
       gap: 10px;
   }

  .sponsor-overlay {
    position: absolute;    /* stick inside hero */
    top: auto;
    bottom: 10px;          /* pin to bottom */
    left: 0;
    right: 0;
    padding: 10px 15px;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .sponsor-heading {
    font-size: 1em;
    margin-bottom: 8px;
  }

  .large-sponsors {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 8px;
  }

  .sponsor-block.large {
    height: 60px;          /* smaller */
    font-size: 0.75em;
  }

  .small-sponsors {
    grid-template-columns: repeat(4, 1fr); /* all 8 fit in 2 rows */
    gap: 5px;
  }

  .sponsor-block.small {
    height: 40px;          /* shrink more */
    font-size: 0.65em;
  }
}

/* Media Query for Extra Small Screens (e.g., phones under 480px) */
@media screen and (max-width: 480px) {
   .category-section h2 {
       font-size: 20px;
   }

   .category-section p {
       font-size: 12px;
   }

   .game-item {
       padding: 8px;
       font-size: 12px;
   }

   .game-item img {
       width: 60px; /* Smaller image size for smaller screens */
       height: 60px;
   }

   .game-details h3 {
       font-size: 14px;
   }

   .game-details p {
       font-size: 12px;
   }

   .game-details .game-link {
       font-size: 12px;
   }
}


/* SPONSORSHIP */

  .sponsor-intro {
    background: linear-gradient(to bottom, #000000, #006a52);
    border-bottom: 1px solid #222;
    padding: 50px 20px;
    text-align: center;
  }

  .sponsor-intro h1 {
    font-size: 20px;
    letter-spacing: 1px;
    color: #92ffe7;
    margin: 0 0 10px;
  }

  .sponsor-intro p {
    font-size: 13px;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
  }

  .sponsor-buttons {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .sponsor-btn {
    background-color: #92ffe7;
    color: #000;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .sponsor-btn:hover {
    background-color: #00d8ad;
    transform: scale(1.03);
  }

  .sponsor-section {
    padding: 20px 20px;
    background: linear-gradient(to bottom, #000000, #151515);
    text-align: center;
    border-bottom:3px dashed #404040;
  }

  .sponsor-section h2 {
    font-size: 28px;
    color: #92ffe7;
    margin-bottom: 10px;
  }
  .section-link {
    margin-top: -10px;
    margin-bottom: 30px;
    font-size: 13px;
  }

  .section-link a {
    color: #909090;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .section-link a:hover {
    color: #00d8ad;
  }

.tier-title {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 8px;
  color: #92ffe7;
}

.tier-sites {
  font-size: 13px;
  margin-bottom: 30px;
  color: #cccccc;
  text-align: center;
}

.tier-sites a {
  color: #92ffe7;
  text-decoration: none;
  margin: 0 4px;
}

.tier-sites a:hover {
  color: #00d8ad;
}


  .sponsor-section p.subtitle {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 0px;
    padding-bottom: 20px;
    padding-left: 80px;
    padding-right: 80px;
  }

  .sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
  }

  .sponsor-card {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    color: #ffffff;
    transition: box-shadow 0.3s ease;
    border-left:1px solid #404040;
    border-bottom:1px solid #404040;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* make sure full width */
    justify-content: flex-start; /* align items to top */
  }

  .wide {
     width: 450px;
  }
  .standard {
     width: 350px;
  }
  .narrow {
     width: 250px;
  }

  .sponsor-card:hover {
    box-shadow: 0 0 8px #92ffe7;
  }

  .sponsor-card h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 10px;
  }

  .sponsor-card .price {
    color: #92ffe7;
    font-size: 16px;
    margin-bottom: 15px;
  }

  .sponsor-card ul {
    padding-left: 18px;
    margin: 0;
  }

  .sponsor-card ul li {
    margin-bottom: 6px;
    font-size: 14px;
    color: #ddd;
  }

.sponsor-banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.card-payments {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.card-payments.vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: auto; /* THIS pushes it to the bottom */
}

.card-payments.vertical .payment-btn {
  width: 100%;
  justify-content: center;
}

.payment-btn {
  flex: 1;
  background-color: #808080;
  color: #ffffff;
  padding: 4px 3px;
  border-radius: 4px;
  font-size: 11px;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.payment-btn:hover {
  background-color: #606060;
  transform: scale(1.05);
}

.payment-btn.patreon {
  background-color: #ff424d;
}

.payment-btn.patreon:hover {
  background-color: #e33641;
}

.payment-btn.bmc {
  background-color: #ffffff;
  color: #000000;
}

.payment-btn.bmc:hover {
  background-color: #d6d6d6;
}

.pay-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}


.sponsor-policy-wrapper {
  max-width: 900px;
  margin: 0 auto; /* center the entire section */
}

.sponsor-policy-block {
  text-align: left; /* align the internal text to the left */
}





.payment-box {
  padding: 5px 20px;
  max-width: 1200px;
  border-radius: 8px;
  margin: 0 auto;
  margin-top: 80px;
  margin-bottom: 80px;
  font-size: 13px;
}

.payment-title {
  color: #ffffff;
  font-size: 20px;
  margin: 10px 0 20px 0; /* Top and bottom margins reduced */
  padding: 0;
  text-align: center;
  line-height: 1.2;
}

.payment-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  text-align: left;
}

.payment-column {
  flex: 1 1 250px;
  min-width: 220px;
  color: #ccc;
  padding: 10px;
  margin: 0 !important;
  border-radius: 5px;
  background-color: #202020;
}

.payment-column h5 {
  font-size: 13px;
  color: #fff;
  margin: 0 0 8px 0; /* remove top margin */
  padding: 0;         /* remove padding */
  line-height: 1.3;
}
.payment-column p {
  margin: 10px 0;
  line-height: 1.4;
  font-size: 13px; /* slightly smaller for general text */
}

.payment-column p strong {
  font-size: 13px; /* make bold headers slightly smaller too */
}

.note {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

.payment-column a {
  color: #92ffe7;
  text-decoration: none;
}

.payment-column.center {
  text-align: center;
}

.btn-patreon {
  background: #ff424d;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-patreon:hover {
  background: #e33641;
}

.btn-bmc {
  background: #ffdd00;
  color: #000 !important;
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-bmc:hover {
  background: #f5cf00;
}


.note {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}




/* -----------------------------------------------------------------------SPONSORSHIP MODAL------------------------------------------------------ */
.sponsor-overlay {
  position: absolute;
  top: 0;            /* align from top */
  right: 2%;
  z-index: 1;
  padding: 80px 40px;
  max-width: 450px;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* align to top, not center */
}

.sponsor-heading {
  font-size: 1.4em;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: #9accff 0px 0px 6px;
}

/* Large Sponsors Grid (2x2) */
.large-sponsors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.sponsor-block.large {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  color: var(--miramtech-cyan-color);
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  height: 100px;
  border: 1px dashed var(--miramtech-cyan-background);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.sponsor-block.large:hover {
  background: rgba(0,0,0,0.25);
  transform: scale(1.03);
}

/* Small Sponsors Grid (8 total) */
.small-sponsors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.sponsor-block.small {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  color: #aaa;
  font-size: 0.75em;
  text-align: center;
  height: 60px;
  border: 1px dashed var(--miramtech-cyan-background);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.sponsor-block.small:hover {
  background: rgba(0,0,0,0.25);
  transform: scale(1.05);
  color: var(--miramtech-cyan-color);
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #111;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  border: 1px solid var(--miramtech-cyan-color);
}

/* Step indicators */
.modal-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
  position: relative;
}
.modal-steps .progress-line {
  position:absolute;
  top:16px;
  left:16.6667%;
  right:16.6667%;
  height:2px;
  background:#333;
  z-index:0;
}
.modal-steps .progress-line span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--miramtech-cyan-color);
  transition: width 0.4s ease;
}
.modal-steps .step {
  flex: 1;
  text-align: center;
  font-weight: bold;
  color: #666;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-steps .step::before {
  content: attr(data-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #333;
  color: #aaa;
  font-size: 0.9em;
  margin-bottom: 6px;
}
.modal-steps .active {
  color: var(--miramtech-cyan-color);
  text-shadow: 0 0 6px var(--miramtech-cyan-color);
}
.modal-steps .active::before {
  background: var(--miramtech-cyan-color);
  color: #000;
  box-shadow: 0 0 10px var(--miramtech-cyan-color);
}

/* Step contents */
.modal-step { text-align: left; }
.modal-step h2 {
  margin:0 0 10px 0;
  font-size: 20px;
}
.modal-step h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

/* Hidden */
.hidden { display: none; }

/* Form elements */
.modal-select {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
  border-radius: 6px;
  border: 1px solid #333;
  background: #000;
  color: #fff;
}

/* Buttons */
.modal-next, .modal-prev, .modal-submit {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  background: var(--miramtech-cyan-background);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  width: auto;
}
.modal-next:hover, .modal-prev:hover, .modal-submit:hover {
  background: var(--miramtech-cyan-color);
  color: #000;
}

/* Action container */
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}
.modal-actions button {
  flex: 1; /* two buttons share space */
}
.modal-actions.single button {
  width: 100%; /* one button fills width */
}

/* Website row */
.website-row {
  display: grid;
  grid-template-columns: 1fr 0;
  align-items: center;
  gap: 10px;
  transition: grid-template-columns .35s ease;
}
.website-row.show-check {
  grid-template-columns: 1fr 140px;
}
.check-website {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 42px;
  border-radius: 6px;
  padding: 0 14px;
  background: var(--miramtech-cyan-background);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--miramtech-cyan-color);
  box-shadow: 0 0 8px rgba(0,0,0,.35) inset;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease, color .2s ease;
}
.website-row.show-check .check-website {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.check-website:hover {
  background: var(--miramtech-cyan-color);
  color:#000;
}

/* Error messages */
.error-msg {
  color: #ff6b6b;
  font-size: 14px;
  margin: 5px 0 10px 0;
}


/* Brand options wrapper */
.brand-options {
  margin: 20px 0;
}

/* Two blocks side by side */
.sponsor-options {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.sponsor-example {
  flex: 1;
  text-align: center;
}

.sponsor-example img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--miramtech-cyan-color);
  box-shadow: 0 0 8px rgba(0,0,0,.4);
  margin-bottom: 12px;
}

/* Buttons under images */
.sponsor-choice {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--miramtech-cyan-color);
  background: var(--miramtech-cyan-background);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s;
  min-height: 80px;
}

.sponsor-choice:hover {
  background: var(--miramtech-cyan-color);
  color: #000;
}

/* Selected state */
.sponsor-choice.selected {
  background: var(--miramtech-cyan-color);
  color: #000;
  box-shadow: 0 0 8px var(--miramtech-cyan-color);
}



/* Payment cards */
.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: center;
}
.payment-card {
  flex: 1 1 calc(50% - 15px);
  max-width: 220px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--miramtech-cyan-color);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.payment-card:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.05);
}
.payment-card.selected {
  background: var(--miramtech-cyan-color);
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 12px var(--miramtech-cyan-color);
}
.payment-card .price {
  font-size: 18px;
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

/* Input field */
.modal-input {
  width: 100%;
  padding: 12px;
  margin: 10px 0 15px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #000;
  color: #fff;
}


.package-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.package-choice {
  padding: 15px;
  border: 2px solid #444;
  border-radius: 8px;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: 0.25s;
  text-align: center;
}
.package-choice:hover {
  border-color: var(--miramtech-cyan-color);
  box-shadow: 0 0 8px rgba(0,255,255,0.4);
}
.package-choice.selected {
  border-color: var(--miramtech-cyan-color);
  background: var(--miramtech-cyan-background);
  color: #000;
  font-weight: bold;
}

.confirmation-msg {
  margin: 15px 0;
  font-size: 14px;
  color: var(--miramtech-cyan-color);
  font-weight: bold;
}


#sponsorEmail,
#sponsorCompanyUrl {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #1a1a1a;
  color: #fff;
  font-size: 16px;
  margin-top: 8px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

#sponsorEmail:focus,
#sponsorCompanyUrl:focus {
  border-color: var(--miramtech-cyan-color);
  outline: none;
}

.error-msg {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 6px;
}


.loader-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000; /* higher than modal-content */
}

.loader {
  border: 6px solid rgba(255,255,255,0.2);
  border-top: 6px solid var(--miramtech-cyan-color, #00ffff);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

.hidden {
  display: none !important;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.success-msg {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #222;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-size: 15px;
  z-index: 9999;
}

.success-msg .close-success {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  margin-left: 12px;
  cursor: pointer;
}


/* MIRAMTECH COMPANY PAGES — 2026 VISUAL SYSTEM */
.company-page {
  --brand-bg: #050707;
  --brand-surface: #0c1212;
  --brand-surface-2: #111919;
  --brand-text: #f2f8f6;
  --brand-muted: #a5b3ae;
  --brand-accent: #9afbe6;
  --brand-accent-strong: #45dfbd;
  --brand-violet: #8d7cff;
  --brand-border: rgba(154, 251, 230, 0.16);
  --brand-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--brand-text);
  background:
    radial-gradient(circle at 12% 6%, rgba(69, 223, 189, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(141, 124, 255, 0.07), transparent 30rem),
    var(--brand-bg);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

.company-page.modal-open {
  overflow: hidden;
}

.company-page h1,
.company-page h2,
.company-page h3,
.company-page h4,
.company-page h5,
.company-page #topbar,
.company-page .button {
  font-family: "Play", sans-serif;
}

.company-page p {
  font-size: 16px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 8px;
  color: #04100d;
  background: var(--brand-accent);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.company-page :focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 4px;
}

.company-page #topbar {
  height: 72px;
  border-bottom: 1px solid transparent;
  background: rgba(5, 7, 7, 0.8);
  backdrop-filter: blur(18px);
}

.company-page #topbar.scrolled {
  border-bottom-color: var(--brand-border);
  background: rgba(5, 7, 7, 0.92) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.company-page #topbar .container {
  width: min(1240px, 100%);
  max-width: 1240px;
  padding: 0 28px;
}

.company-page #topbar .logo {
  display: inline-flex;
  align-items: center;
}

.company-page #topbar .logo img {
  width: auto;
  height: 44px;
}

.company-page .topbar-links {
  gap: 8px;
}

.company-page .topbar-links a {
  min-width: auto;
  padding: 0 17px;
  color: #c0cbc7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.company-page .topbar-links a:hover,
.company-page .topbar-links a[aria-current="page"] {
  color: var(--brand-accent);
  animation: none;
}

.company-page .topbar-links a::after {
  bottom: 12px;
  height: 1px;
  background: var(--brand-accent);
}

.company-page .hamburger {
  width: 28px;
  height: 20px;
}

.company-page #main_section {
  width: 100%;
  padding: 0 0 96px;
  background: transparent;
}

.home-page .featured-section {
  min-height: calc(100svh - 72px);
  border-bottom: 1px solid var(--brand-border);
  text-align: left;
}

.home-page .background-video {
  width: 100%;
  height: 100%;
  opacity: 0.62;
  filter: saturate(0.82) contrast(1.06);
}

.home-page .video-overlay {
  background:
    linear-gradient(90deg, rgba(3, 5, 5, 0.98) 0%, rgba(3, 5, 5, 0.72) 46%, rgba(3, 5, 5, 0.16) 78%),
    linear-gradient(0deg, var(--brand-bg) 0%, transparent 28%),
    linear-gradient(180deg, rgba(3, 5, 5, 0.45) 0%, transparent 25%);
}

.home-page .content-overlay {
  position: relative;
  inset: auto;
  width: min(1240px, 100%);
  max-width: 1240px;
  margin: 0 auto;
  padding: 112px 28px 88px;
  border-radius: 0;
}

.eyebrow,
.company-page .section-index {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  color: var(--brand-accent-strong);
  font-family: "Play", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.home-page .intro-heading {
  max-width: 900px;
  margin: 0 0 26px;
  color: var(--brand-text);
  font-size: clamp(52px, 7.2vw, 96px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: 0 16px 60px rgba(0, 0, 0, 0.55);
}

.home-page .intro-heading span {
  color: var(--brand-accent);
}

.home-page .intro-text {
  max-width: 650px;
  margin: 0;
  color: #c4ceca;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6;
  text-shadow: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.company-page .button {
  min-height: 50px;
  padding: 14px 21px;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  color: var(--brand-text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.company-page .button:hover {
  border-color: rgba(154, 251, 230, 0.45);
  color: var(--brand-text);
  background: rgba(154, 251, 230, 0.1);
  transform: translateY(-2px);
}

.company-page .button-primary,
.company-page .studio-button {
  border-color: transparent;
  color: #04100d;
  background: var(--brand-accent);
}

.company-page .button-primary:hover,
.company-page .studio-button:hover {
  color: #04100d;
  background: #c6fff2;
}

.company-page .x3js-button {
  border-color: rgba(141, 124, 255, 0.5);
  background: rgba(141, 124, 255, 0.15);
}

.company-page .adglitch-button {
  border-color: rgba(255, 103, 103, 0.42);
  background: rgba(255, 103, 103, 0.12);
}

.hero-signals,
.studio-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
}

.hero-signals span,
.studio-signals span {
  padding: 7px 11px;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  color: #9eadA8;
  background: rgba(5, 7, 7, 0.48);
  font-family: "Play", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-page .child-section {
  width: min(1180px, calc(100% - 48px));
  height: auto;
  min-height: 560px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 25, 25, 0.96), rgba(8, 12, 12, 0.98));
  box-shadow: var(--brand-shadow);
}

.home-page .img-column,
.home-page .info-column {
  min-width: 0;
}

.home-page .img-column {
  flex: 1.12;
  position: relative;
  min-height: 560px;
}

.home-page .info-column {
  flex: 0.88;
  justify-content: center;
  padding: 62px;
  text-align: left;
}

.home-page .info-column h2 {
  margin: 0 0 20px;
  padding: 0;
  color: var(--brand-text);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.home-page .info-column p {
  margin: 0;
  padding: 0;
  color: var(--brand-muted);
  font-size: 16px;
  line-height: 1.75;
}

.home-page .align-left,
.home-page .align-right {
  padding-right: 0;
  padding-left: 0;
  text-align: left;
}

.home-page .button-container {
  margin-top: 30px;
}

.home-page .image-container-left,
.home-page .image-container-right {
  position: absolute;
  inset: 0;
  min-height: 0;
  border: 0;
}

.home-page .image-container-left::after,
.home-page .image-container-right::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 7, 0.5));
}

.home-page .game-image-left,
.home-page .game-image-right {
  transition: transform 500ms ease, filter 500ms ease;
}

.home-page .child-section:hover .game-image-left,
.home-page .child-section:hover .game-image-right {
  transform: scale(1.025);
  filter: saturate(1.06);
}

.home-page .bottom-right-link {
  z-index: 3;
  right: 18px;
  bottom: 18px;
  padding: 8px 11px;
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  color: var(--brand-text);
  background: rgba(5, 7, 7, 0.75);
  backdrop-filter: blur(12px);
}

.company-page #footer {
  padding: 70px 24px 34px;
  border-top: 1px solid var(--brand-border);
  color: var(--brand-muted);
  background: rgba(5, 7, 7, 0.9);
  font-family: "Inter", sans-serif;
}

.company-page .footer-top {
  margin-bottom: 34px;
}

.company-page .footer-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.company-page .footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid var(--brand-border);
  border-radius: 50%;
  background: rgba(154, 251, 230, 0.04);
}

.company-page .footer-socials a:hover {
  opacity: 1;
  border-color: rgba(154, 251, 230, 0.42);
  background: rgba(154, 251, 230, 0.1);
}

.company-page .footer-columns {
  width: min(1120px, 100%);
  max-width: 1120px;
  gap: 42px;
  padding: 44px 0;
  border-color: rgba(154, 251, 230, 0.1);
}

.company-page .footer-col h4 {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: var(--brand-text);
  font-family: "Play", sans-serif;
  letter-spacing: 0.04em;
}

.company-page .footer-col p,
.company-page .footer-col ul {
  color: #8d9b96;
  font-size: 13px;
  line-height: 1.7;
}

.company-page .footer-col ul li a,
.company-page .footer-email {
  color: #aab7b2;
}

.company-page .footer-col ul li a:hover,
.company-page .footer-email:hover {
  color: var(--brand-accent);
}

.company-page .footer-bottom p {
  margin: 28px 0 0;
  color: #68746f;
  text-shadow: none;
  filter: none;
}

/* Studio */
.studio-page #studio_section {
  width: 100%;
  max-width: none;
  padding: 98px 28px 78px;
  border-bottom: 1px solid var(--brand-border);
  color: var(--brand-text);
  background:
    radial-gradient(circle at 15% 20%, rgba(69, 223, 189, 0.12), transparent 28rem),
    linear-gradient(180deg, #07100e 0%, var(--brand-bg) 100%);
}

.studio-page .studio-container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.studio-page .back-button {
  margin-bottom: 54px;
  padding: 10px 13px;
  border-color: var(--brand-border);
  border-radius: 999px;
  color: var(--brand-muted);
  background: rgba(154, 251, 230, 0.04);
  font-family: "Play", sans-serif;
}

.studio-page #studio_section h1 {
  max-width: 800px;
  margin: 0 0 24px;
  color: var(--brand-text);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.studio-page #studio_section p {
  max-width: 850px;
  margin: 0;
  color: var(--brand-muted);
  font-size: 17px;
  line-height: 1.75;
}

.studio-page #games_section {
  min-height: 0;
  padding: 42px 24px 100px;
  background: transparent;
}

.studio-page #games_content_section {
  max-width: 1180px;
}

.studio-page .category-section {
  margin: 0 0 30px;
  padding: 32px;
  border: 1px solid var(--brand-border);
  border-radius: 22px;
  background: rgba(12, 18, 18, 0.86);
  box-shadow: var(--brand-shadow);
}

.studio-page .category-section h2 {
  margin: 0 0 22px;
  color: var(--brand-text);
  font-size: 28px;
}

.studio-page .category-link {
  color: var(--brand-text);
}

.studio-page .category-section .games-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.studio-page .game-item,
.studio-page .games-list > .game-item:only-child {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  color: var(--brand-text);
  background: rgba(255, 255, 255, 0.025);
}

.studio-page .game-item img {
  width: 160px;
  height: 160px;
  border: 0;
  border-radius: 12px;
}

.studio-page .game-details h3 {
  color: var(--brand-text);
  font-family: "Play", sans-serif;
  font-size: 19px;
}

.studio-page .game-details p {
  color: var(--brand-muted);
  line-height: 1.55;
}

.studio-page .play-button {
  padding: 10px 14px;
  border-color: var(--brand-border);
  border-radius: 9px;
  color: #04100d;
  background: var(--brand-accent);
  font-family: "Play", sans-serif;
  font-weight: 700;
}

.studio-page .studio-empty {
  min-height: 420px;
  padding: 76px;
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 18%, rgba(141, 124, 255, 0.14), transparent 22rem),
    radial-gradient(circle at 8% 90%, rgba(69, 223, 189, 0.12), transparent 24rem),
    var(--brand-surface);
  box-shadow: var(--brand-shadow);
}

.studio-page .studio-empty h2 {
  max-width: 680px;
  margin: 0 0 20px;
  color: var(--brand-text);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.studio-page .studio-empty p {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--brand-muted);
  font-size: 17px;
}

/* Sponsorships */
.sponsorship-page .sponsor-intro {
  padding: 112px 24px 96px;
  border-bottom: 1px solid var(--brand-border);
  background:
    radial-gradient(circle at 50% 100%, rgba(69, 223, 189, 0.18), transparent 35rem),
    linear-gradient(180deg, #07100e, var(--brand-bg));
}

.sponsorship-page .sponsor-intro h1 {
  margin: 0 0 22px;
  color: var(--brand-text);
  font-size: clamp(46px, 6vw, 74px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.sponsorship-page .sponsor-intro p {
  max-width: 760px;
  color: var(--brand-muted);
  font-size: 17px;
  line-height: 1.7;
}

.sponsorship-page .sponsor-buttons {
  margin-top: 34px;
}

.sponsorship-page .sponsor-btn {
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #04100d;
  background: var(--brand-accent);
  font-family: "Play", sans-serif;
  font-size: 13px;
}

.sponsorship-page .sponsor-btn:hover {
  color: #04100d;
  background: #c6fff2;
  transform: translateY(-2px);
}

.sponsorship-page .sponsor-section {
  padding: 82px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--brand-border);
  background: transparent;
}

.sponsorship-page .sponsor-section:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.012);
}

.sponsorship-page .sponsor-section h2 {
  margin: 0 0 16px;
  color: var(--brand-text);
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.035em;
}

.sponsorship-page .sponsor-section p.subtitle {
  max-width: 820px;
  margin: 0 auto 30px;
  padding: 0;
  color: var(--brand-muted);
  line-height: 1.7;
}

.sponsorship-page .tier-title {
  margin-top: 76px !important;
  margin-bottom: 12px;
  color: var(--brand-accent);
  font-size: 22px;
}

.sponsorship-page .sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto 36px;
}

.sponsorship-page .sponsor-card,
.sponsorship-page .wide,
.sponsorship-page .standard,
.sponsorship-page .narrow {
  width: auto;
}

.sponsorship-page .sponsor-card {
  padding: 26px;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  color: var(--brand-text);
  background: linear-gradient(150deg, rgba(18, 27, 27, 0.98), rgba(10, 15, 15, 0.98));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.sponsorship-page .sponsor-card:hover {
  border-color: rgba(154, 251, 230, 0.36);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  transform: translateY(-4px);
}

.sponsorship-page .sponsor-card h3,
.sponsorship-page .sponsor-card h4 {
  margin-top: 0;
  color: var(--brand-text);
  line-height: 1.25;
}

.sponsorship-page .sponsor-card .price {
  color: var(--brand-accent);
  font-family: "Play", sans-serif;
  font-weight: 700;
}

.sponsorship-page .sponsor-card ul li {
  color: var(--brand-muted);
  line-height: 1.55;
}

.sponsorship-page .sponsor-banner {
  margin-bottom: 22px;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
}

.sponsorship-page .payment-btn {
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #04100d;
  background: var(--brand-accent);
  font-family: "Play", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.sponsorship-page .payment-btn:hover {
  color: #04100d;
  background: #c6fff2;
  transform: translateY(-2px);
}

.sponsorship-page .sponsor-policy-block {
  padding: 20px 24px;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  background: rgba(154, 251, 230, 0.035);
}

.sponsorship-page .modal {
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
}

.sponsorship-page .modal-content {
  position: relative;
  width: min(680px, 100%);
  max-width: 680px;
  max-height: min(820px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 38px;
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  background: #0d1414;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}

.sponsorship-page .modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--brand-border);
  border-radius: 50%;
  color: var(--brand-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 24px;
  cursor: pointer;
}

.sponsorship-page .modal-close:hover {
  color: var(--brand-text);
  background: rgba(154, 251, 230, 0.09);
}

.sponsorship-page .modal-select,
.sponsorship-page #sponsorEmail,
.sponsorship-page #sponsorCompanyUrl {
  min-height: 48px;
  border-color: var(--brand-border);
  background: #080c0c;
}

.sponsorship-page .modal-next,
.sponsorship-page .modal-prev,
.sponsorship-page .modal-submit {
  min-height: 46px;
  border: 1px solid var(--brand-border);
  border-radius: 9px;
  background: rgba(154, 251, 230, 0.08);
}

.sponsorship-page .package-choice.selected {
  border-color: var(--brand-accent);
  color: var(--brand-text);
  background: rgba(154, 251, 230, 0.12);
}

.sponsorship-page .loader-overlay {
  position: fixed;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .company-page #topbar .container {
    padding: 0 18px;
  }

  .company-page .topbar-links {
    display: none;
    position: absolute;
    top: 72px;
    right: 12px;
    width: min(360px, calc(100% - 24px));
    height: auto;
    overflow: hidden;
    gap: 0;
    padding: 7px;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    background: rgba(8, 12, 12, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  }

  .company-page .topbar-links.open {
    display: flex;
  }

  .company-page .topbar-links a {
    height: 50px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(154, 251, 230, 0.08);
    background: transparent;
    line-height: 50px;
    text-align: left;
  }

  .company-page .topbar-links a::after {
    display: none;
  }

  .company-page .hamburger {
    display: flex;
  }

  .home-page .content-overlay {
    padding: 96px 24px 70px;
  }

  .home-page .child-section {
    flex-direction: column;
    width: min(100% - 28px, 680px);
    min-height: 0;
    margin-top: 16px;
    border-radius: 18px;
  }

  .home-page .img-column {
    order: 1;
    display: block;
    width: 100%;
    height: 310px;
    min-height: 310px;
  }

  .home-page .info-column {
    order: 2;
    padding: 38px 30px 42px;
  }

  .home-page .image-container-left,
  .home-page .image-container-right {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 310px;
    min-height: 310px;
  }

  .home-page .game-image-left,
  .home-page .game-image-right {
    position: absolute;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
  }

  .studio-page .category-section .games-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .company-page #topbar {
    height: 64px;
  }

  .company-page #topbar .logo img {
    height: 38px;
  }

  .company-page .topbar-links {
    top: 64px;
  }

  .home-page .featured-section {
    min-height: calc(100svh - 64px);
  }

  .home-page .video-overlay {
    background:
      linear-gradient(90deg, rgba(3, 5, 5, 0.88), rgba(3, 5, 5, 0.45)),
      linear-gradient(0deg, var(--brand-bg), transparent 40%);
  }

  .home-page .content-overlay {
    padding: 76px 20px 54px;
  }

  .home-page .intro-heading {
    font-size: clamp(45px, 14vw, 66px);
  }

  .home-page .intro-text {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-signals {
    margin-top: 28px;
  }

  .home-page #main_section {
    padding: 0 0 68px;
  }

  .home-page .img-column,
  .home-page .image-container-left,
  .home-page .image-container-right {
    height: 240px;
    min-height: 240px;
  }

  .home-page .info-column {
    padding: 32px 22px 36px;
  }

  .company-page #footer {
    padding: 54px 20px 28px;
  }

  .studio-page #studio_section {
    padding: 72px 20px 58px;
  }

  .studio-page .back-button {
    width: auto;
    margin-bottom: 40px;
  }

  .studio-page #games_section {
    padding: 24px 12px 70px;
  }

  .studio-page .category-section {
    padding: 22px;
  }

  .studio-page .game-item {
    align-items: stretch;
  }

  .studio-page .game-item img {
    width: 100%;
    height: 220px;
    margin: 0 0 16px;
  }

  .studio-page .game-details {
    align-items: flex-start;
    text-align: left;
  }

  .studio-page .studio-empty {
    min-height: 0;
    padding: 42px 26px;
  }

  .sponsorship-page .sponsor-intro {
    padding: 82px 20px 70px;
  }

  .sponsorship-page .sponsor-section {
    padding: 58px 14px;
  }

  .sponsorship-page .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .sponsorship-page .sponsor-card {
    padding: 22px;
  }

  .sponsorship-page .modal {
    padding: 10px;
  }

  .sponsorship-page .modal-content {
    max-height: calc(100vh - 20px);
    padding: 46px 20px 24px;
    border-radius: 16px;
  }

  .sponsorship-page .sponsor-options {
    flex-direction: column;
  }

  .sponsorship-page .package-options {
    grid-template-columns: 1fr;
  }

  .sponsorship-page .website-row.show-check {
    grid-template-columns: 1fr;
  }

  .sponsorship-page .check-website {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .company-page *,
  .company-page *::before,
  .company-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}






