:root {
    --clr-primary: #8a5ae4;
    --clr-primary50: #8a5ae480;
    --clr-accent: #b9a3e3;
    --clr-gray: hsl(286, 24%, 96%);
    --clr-gray75: hsla(286, 24%, 96%, 0.75);
    --clr-gray50: hsla(286, 24%, 96%, 0.5);
    --clr-darkgray: hsl(286, 1%, 18%);
}

.filler {
    height: 2000px;
    background-color: var(--clr-darkgray);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    overflow: hidden;
}

body {
    background-color: var(--clr-gray);
}

body.noscroll {
    overflow: hidden;
    touch-action: none;
    position: fixed;
    width: 100%;
}

.scroll-container {
  overflow-y: scroll;
  height: 100vh;

  /* hide native scrollbar */
  scrollbar-width: none; /* Firefox */
  z-index: 2000;
}

.custom-scrollbar {
  position: fixed;
  top: 0;
  right: 2px;
  width: 6px;
  height: 100%;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;

    background-color: var(--clr-gray);
}

/* --- Hamburger button --- */
.hamburger {
  display: none; /* hidden on large screens */
  flex-direction: column;
  justify-content: space-between;
  width: 1.2em;
  height: .9em;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002; /* above menu */
  background-color: inherit;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  mix-blend-mode: difference;
  border-radius: 2px;
  z-index: 10;
  transition: all 0.3s ease;
}

/* Hamburger animation (toggle "open") */
.hamburger.open span:nth-child(1) {
  transform: translateY(1rem) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-1rem) rotate(-45deg);
}

.nav-menu {
    display: flex;
    background-color: inherit;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-family: 'Jura';
    font-size: 2.5rem;
    transition: color 0.3s ease;
    mix-blend-mode: difference;
    filter: invert(1);
    transition: scale 0.2s ease-in;
}

.nav-menu a:hover {
    color: var(--clr-accent);
    scale: 1.1;
    mix-blend-mode: normal;
    filter: none;
}

.title {
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-family: 'Jura';
    font-size: 2.5rem;
    position: absolute;
    top: -10vw;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    text-align: center;
    transition: top 1s ease-out, opacity 1s ease-out;
    mix-blend-mode: difference;
    filter: invert(1);
}

.title.show {
    top: 2.15rem; /* final position on screen */
    opacity: 1;
}

a, button {
    font-size: 2.5rem;
}

.contact-button {
    padding: .2rem .5rem .3rem;
    margin: .5rem 0;
    background-color: transparent;
    color: white;
    border: 3px solid white;
    border-radius: 10px;
    font-weight: 500;
    font-family: 'Jura';
    cursor: pointer;
    transition: background-color 0.2s ease, border 0.2s, color 0.2s, scale 0.2s ease;

    text-shadow: 
        0 0 3px var(--clr-primary),
        0 0 6px var(--clr-primary),
        0 0 10px var(--clr-primary);

    box-shadow: 
        0 0 5px var(--clr-primary),           /* outer glow */
        0 0 10px var(--clr-primary),
        inset 0 0 5px var(--clr-primary),  /* inner glow */
        inset 0 0 10px var(--clr-primary);
}

.contact-button:hover {
    scale: 1.1;
    background-color: var(--clr-accent);
}

h1, h2, h3, h4, p {
    color: white;
    font-weight: 700;
    font-family: 'Jura';
    letter-spacing: .1rem;
    line-height: 3rem;
    text-align: center;
}

img.sticker {
    position: fixed;
    z-index: 2000;
    height: 20vw;
    width: auto;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

#Arky {
    top: 45vw;
    left: 5vw;
}

#NosSunny {
    top: 45vw;
    left: 23vw;
    height: 21vw;
}

#YugiYBGSanti {
    top: 45vw;
    left: 50vw;
}

.about-sticker {
    opacity: 0;
    transition: opacity 0.2s ease-out, scale 0.2s ease-in;
}

#Arky-about {
    top: 18%;
    left: 3%;
    opacity: 1;
}

#Nos-about {
    top: 41%;
    left: 5%;
    height: 21vw;
}

#YBG-about {
    top: 40%;
    left: 70%;
}

#Sunny-about {
    top: 41%;
    left: 82%;
    height: 21vw;
}

#Santi-about {
    top: 18%;
    left: 85%;
}

#Yugi-about {
    top: 39%;
    left: 2%;
}

.video-container, .hole-wrapper {
    width: 100%;
    height: 70vw;
    object-fit: cover;
    position: sticky;
    top: 80px;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.hole-wrapper {
    position: fixed;
    z-index: 0;
}

.gap {
    width: 100%;
    height: 0px;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grain-overlay, .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
}

.video-overlay {
    opacity: 1;
    background-color: #00000050;
    box-shadow: inset 0 20px 30px rgba(0, 0, 0, 0.6),
                inset 0 -20px 30px rgba(0, 0, 0, 0.6);
}

.rectangle-with-hole {
    width: 100%;
    height: 100%;
    background-color: var(--clr-gray);

    -webkit-mask: radial-gradient(
        circle 15vw at center 45vw,
        transparent 0%,
        transparent 99%,
        black 100%
    );

    mask: radial-gradient(
        circle 15vw at center 45vw,
        transparent 0%,
        transparent 99%,
        black 100%
    );

    position: relative;
    z-index: 999;
}

.inner-shadow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 15vw at center 45vw,
        transparent 70%,
        rgba(0, 0, 0, 0.2) 90%,
        rgba(0, 0, 0, 0.5) 100%
    );

    z-index: 998;
}

.rectangle-with-hole, .inner-shadow {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 200vh;
    pointer-events: none;
}

.og-oscs {
    display: flex;
    justify-content: center;
    align-items: center;

    position: absolute;
    top: 20vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;

    width: 100vw;
    height: fit-content;
    pointer-events: none;
}

svg .arched-letters {
    width: 400px;
    height: 200px;
}

text {
    fill: black;
    font-size: 3rem;
    font-family: 'Jura';
    letter-spacing: .5rem;
}

textPath {
    text-anchor: middle;
}

.play-button {
    width: 0;
    height: 0;
    border-top: 7vw solid transparent;
    border-bottom: 7vw solid transparent;
    border-left: 13vw solid var(--clr-gray);
    position: fixed;
    top: 46vw;
    left: 50%;
    transform: translateX(-23%) translateY(-50%);
    mix-blend-mode: difference;
    z-index: 1500;
    
    scale: 1;
    transform-origin: 25% 50%;
    transition: transform 0.2s ease-in-out, scale 0.2s ease-in-out;
}

.play-button:hover {
    transform: translate(-23%, -50%);
    animation: tilt 2s ease-in-out infinite alternate;
    animation-delay: 0.2s;
    scale: 1.1;
}

@keyframes tilt {
    0% { transform: translate(-23%, -50%) rotate(0deg); }
    50% { transform: translate(-23%, -50%) rotate(-5deg); }
    100% { transform: translate(-23%, -50%) rotate(5deg); }
}

@keyframes vibrate {
    0% { transform: translate(-23%, -50%) translate(0,0); }
    25% { transform: translate(-23%, -50%) translate(-2px,2px); }
    50% { transform: translate(-23%, -50%) translate(2px,-2px); }
    75% { transform: translate(-23%, -50%) translate(-2px,-2px); }
    100% { transform: translate(-23%, -50%) translate(0,0); }
}

.play-button:active {
    animation: vibrate 0.1s infinite;
    scale: 1.2;
}

.play-button-parent {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100vw;
}

.mission-back {
    width: 100%;
    /* background-color: #1d1d1d; */
    background-image: linear-gradient(to bottom, #1d1d1d, var(--clr-darkgray));
}

.mission {
    color: var(--clr-gray);
    font-weight: 400;
    mix-blend-mode: difference;
    padding: 10vw 20vw;
}

.section-wrapper {
    width: 100%;
    background-color: var(--clr-darkgray);
    padding: 30px 0;
}

.content-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-section .backing {
    width: 100%;
    height: 56.25vw;
    background-color: var(--clr-gray50);
    position: absolute;
    z-index: -1;
    top: 50%;
    transform: translate(0, -50%);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2),
                0 -20px 30px rgba(0, 0, 0, 0.2);
}

.content-section h1 {
    padding-bottom: 30px;
    font-size: 3rem;
}

.new-video {
    position: relative;
    padding-bottom: 45%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 80%;
    border-radius: 20px 20px 0 0;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.2);
    margin: 30px auto 0;
}

.new-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    object-fit: cover;
    border: none;
    will-change: transform;
}

/* Slide animations */
.swipe-out-left  { transform: translateX(-100%); opacity: 0; }
.swipe-out-right { transform: translateX(100%); opacity: 0; }
.swipe-in-left   { transform: translateX(-100%); opacity: 0; }
.swipe-in-right  { transform: translateX(100%); opacity: 0; }
.swipe-active    { transform: translateX(0); opacity: 1; }

.hidden {
  opacity: 0;
}

.about-creator {
    width: 100%;
    height: auto;
}

.member-menu {
    width: 80%;;
    margin: 0 auto;
    margin-top: 20px;
}

.member-list {
    display: flex;
    flex-direction: row;
    color: var(--clr-gray);
    font-weight: 500;
    font-family: 'Jura';
    justify-content: space-around;
    text-align: center;
}

.member-selector {
    height: 4px;
    background-color: var(--clr-gray);
    margin-top: 20px;
    transition: transform 0.3s ease, width 0.3s ease;
}

.chat {
    background-color: #1d1d1d;
    width: 80%;
    margin: 0 auto;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.chat p, .chat p a {
    color: white;
    text-align: left;
    margin: 20px 0 20px 30px;
    font-size: 2em;
    height: 1.2em;
    white-space: nowrap;
}

.chat p a {
    margin: 0;
    text-decoration: none;
    transition: color 0.2s ease-in, font-size .2s ease;
    font-size: 1em;
}

.chat p a:hover {
    color: var(--clr-accent);
    font-size: 1.2em;
}

.social-icon {
    width: .8em;
    height: .8em;
    vertical-align: middle;
    margin-bottom: .2em;
}

.user {
    color: var(--clr-accent)
}

#live-wrapper {
    background-image: linear-gradient(to bottom, var(--clr-darkgray), #1a1a1a, var(--clr-darkgray));
}

.neon-live {
  font-family: 'Jura';
  font-size: 3rem;
  color: #fff; /* White text */
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.2em .5em;
  border-radius: 30px;
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  position: relative;

  text-shadow: 
    0 0 3px var(--clr-primary),
    0 0 6px var(--clr-primary),
    0 0 10px var(--clr-primary);

  box-shadow: 
    0 0 5px var(--clr-primary),           /* outer glow */
    0 0 10px var(--clr-primary),
    inset 0 0 5px var(--clr-primary),  /* inner glow */
    inset 0 0 10px var(--clr-primary);

  animation: flicker 1.5s infinite alternate, pulse-inner 2s infinite ease-in-out;
}

.content-section:has(.neon-live) {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 50px 0;
}

.content-section:has(.neon-live) h1{
    padding: 0;
}

/* Dot inside the sign */
.neon-live .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #fff; /* white dot */
  box-shadow: 
    0 0 3px var(--clr-primary), 
    0 0 6px var(--clr-primary), 
    inset 0 0 3px var(--clr-primary);
  animation: blink 1s infinite;
}

/* Flickering text effect */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 3px var(--clr-primary), 0 0 6px var(--clr-primary), 0 0 10px var(--clr-primary);
    box-shadow: 
      0 0 5px var(--clr-primary), 0 0 10px var(--clr-primary),
      inset 0 0 5px var(--clr-primary),
      inset 0 0 10px var(--clr-primary);
    opacity: 1;
  }
  20%, 22%, 24%, 55% {
    text-shadow: 0 0 2px var(--clr-primary), 0 0 4px var(--clr-primary), 0 0 6px var(--clr-primary);
    box-shadow: 
      0 0 3px var(--clr-primary), 0 0 6px var(--clr-primary),
      inset 0 0 3px var(--clr-primary),
      inset 0 0 6px var(--clr-primary);
    opacity: 0.8;
  }
}

/* Pulsing inner glow */
@keyframes pulse-inner {
  0%, 100% {
    box-shadow: 
      0 0 5px var(--clr-primary), 0 0 10px var(--clr-primary),
      inset 0 0 5px var(--clr-primary),
      inset 0 0 10px var(--clr-primary);
  }
  50% {
    box-shadow: 
      0 0 6px var(--clr-primary), 0 0 12px var(--clr-primary),
      inset 0 0 6px var(--clr-primary),
      inset 0 0 12px var(--clr-primary);
  }
}

/* Blinking dot animation */
@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
    box-shadow: 0 0 3px var(--clr-primary), 0 0 6px var(--clr-primary), inset 0 0 3px rgba(255,0,0,0.5);
  }
  25%, 75% {
    opacity: 0.2;
    box-shadow: 0 0 1px var(--clr-primary), 0 0 3px var(--clr-primary), inset 0 0 1px var(--clr-primary);
  }
}

/* OFF state */
.neon-live.off {
  color: #aaa; /* gray text */
  border-color: #aaa; /* gray border */
  text-shadow: none;
  box-shadow: none;
  animation: none;
  
  transform-origin: bottom left;  /* Pivot point */
  transform: rotate(5deg);       /* Tilt down */
  transition: transform 1.5s ease-in-out, color 1s ease, border-color 1s ease;
}

.neon-live.off .dot {
  background-color: #aaa; /* gray dot */
  box-shadow: none;
  animation: none;
}

.inset-container {
    width: 100%;
    height: 400px;
    position: relative;
}

.inset {
    background-color: #1d1d1d;
    width: 100%;
    height: 100%;
    position: relative;
}

.inset .content-section {
    height: 100%;
    font-size: 1.5rem;
}

.inset-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    box-shadow: inset 0 20px 30px rgba(0, 0, 0, 0.4),
                inset 0 -20px 30px rgba(0, 0, 0, 0.4);
}

.no-live {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    height: 100%;
}

.no-live #grass {
    width: 200px;
    height: auto;
    z-index: 2;
    transition: transform 0.2s ease-in-out, scale 0.2s ease-in-out;
}

.no-live img:hover {
    scale: 1.1;
}

.ejected-sticker {
    transition: transform 1s ease-out, opacity 1s ease-out;
    width: auto;
    height: 100px;
    pointer-events: none;
}


@keyframes vibrate-grass {
    0% { transform: translate(0,0); }
    25% { transform: translate(-2px,2px); }
    50% { transform: translate(2px,-2px); }
    75% { transform: translate(-2px,-2px); }
    100% { transform: translate(0,0); }
}

.no-live img:active {
    animation: vibrate-grass 0.1s infinite;
}

.live {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    overflow: hidden;
}

.live video {
    position: absolute;
    filter: blur(20px);
    z-index: 0;
}

.live .video-overlay {
    position: absolute;
    z-index: 1;
    box-shadow: inset 0 20px 30px rgba(0, 0, 0, 0.4),
                inset 0 -20px 30px rgba(0, 0, 0, 0.4);
}

.content-section.live-profiles {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    overflow: hidden;
    z-index: 2;
}

.profile-pic, .back-button, .next-button {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 0 5px var(--clr-primary),           /* outer glow */
                0 0 10px var(--clr-primary),
                inset 0 0 5px var(--clr-primary),  /* inner glow */
                inset 0 0 10px var(--clr-primary);
}

.twitch-profile {
    z-index: 2;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: scale 0.3s ease;
    transform-origin: center;
}

.twitch-profile:hover {
    scale: 1.1;
}

@keyframes hoverIdle {
  0% {
    scale: 1;
  }
  50% {
    scale: 1.04;
  }
  100% {
    scale: 1;
  }
}

.twitch-profile.idle {
  animation: hoverIdle 5s ease-in-out infinite;
}

.twitch-profile:nth-of-type(2) {
    top: 325px;
    left: 20vw;
    transform: translate(-50%, -100%);
}

.twitch-profile:nth-of-type(3) {
    top: 75px;
    left: 50vw;
    transform: translateX(-50%);
}

.twitch-profile:nth-of-type(4) {
    top: 325px;
    left: 80vw;
    transform: translate(-50%, -100%);
}

.back-button, .next-button {
    position: absolute;
    z-index: 2;
    font-size: 3em;;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.back-button h1, .next-button h1 {
    margin: 0;
    padding-left: 70px;
    font-weight: 100;
    text-shadow: 
        0 0 3px var(--clr-primary),
        0 0 6px var(--clr-primary),
        0 0 10px var(--clr-primary);
}

.next-button h1 {
    padding-right: 70px;
    padding-left: 0;
}

.back-button {
    left: 0;
    top: 75px;
    transform: translateX(-50%);
}

.next-button {
    left: 100%;
    top: 75px;
    transform: translateX(-50%);
}

/* --- Responsive behavior --- */
@media (max-width: 1120px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  /* hide center link and contact button when menu open (optional) */
  .hamburger.open ~ .center-link,
  .hamburger.open ~ .contact-button {
    opacity: 0.3;
    pointer-events: none;
  }
}