@import url('https://fonts.googleapis.com/css2?family=New+Rocker&family=Splash&family=Tillana:wght@400;500;600;700;800&display=swap');



body {
  /* This centers the image */
  background-position: center;

  /* This prevents the image from repeating */
  background-repeat: no-repeat;

  /* This makes the image stay fixed when you scroll */
  background-attachment: fixed;

  /* This is the magic line: it scales the image to fill the screen */
  background-size: cover;
  
  /* Fallback color in case the image doesn't load */
  background-color: #333;

  overflow: hidden; /* This forces the scrollbars to vanish entirely */

  background-size: cover;
  background-position: center;
}

img {
  transition: all 0.5s ease-in-out;
}


.gif-container img {
  /* This ensures the GIF never exceeds the screen width or height */
  max-width: 100vw; 
  max-height: 100vh;
  
  /* This keeps the GIF from stretching horizontally or vertically */
  object-fit: contain; 
  
  /* Removes any weird extra spacing at the bottom of the image */
  display: block; 
  
}

/* Optional: Center the container if it's not already */
.gif-container {
  /* YOUR WORKING POSITION */
  position: absolute;
  left: -5%;
  top: 50%;
  transform: translateY(-45%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  pointer-events: auto;

  /* ADD THIS LINE - it acts as the anchor for the arm */
  position: absolute; 
}

#main-character {
  display: block;
  position: relative;
  z-index: 1;
  /* If your GIF looks too big/small, add a width here like: width: 500px; */
}

#arm-overlay {
  /* This tells the arm to stay inside the container */
  position: absolute; 
  z-index: 10;
  cursor: pointer;

  opacity: 0;
  transition: opacity 0.3s ease; 
}

#arm-overlay:hover {
  opacity: 1;
}

.arm-anet {
  top: 24.2%;
  left: 37.3%;
  width: 5.5%;
}

.arm-dawe {
  top: 23.6%;
  left: 48.8%;
  width: 4.2%;
}

.arm-maiya {
  top: 26%;
  left: 50%;
  width: 6%;
}

.arm-bara {
  top: 25.7%;
  left: 36.9%;
  width: 5.2%;
}

/* Button popups — matches site vibe (dark glass, rounded, Splash/Tillana) */
.popup-text {
    display: none;
    position: fixed;
    top: 50%;
    left: 41.5%;
    transform: translate(-50%, -50%);
    width: min(90vw, 720px);
    max-width: 720px;
    padding: 44px 52px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;

    font-family: "Tillana", system-ui;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);

    z-index: 100000;
    cursor: pointer;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 255, 255, 0.08);
    transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.popup-text:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

/* Anet — timeline blue #77a3cc */
.popup-anet {
    border-color: rgba(119, 163, 204, 0.45);
}

.popup-anet:hover {
    border-color: #77a3cc;
    color: #77a3cc;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 32px rgba(119, 163, 204, 0.5);
    text-shadow: 0 0 14px rgba(119, 163, 204, 0.55);
}

/* Dawe — timeline red #8d091f */
.popup-dawe {
    border-color: rgba(141, 9, 31, 0.55);
}

.popup-dawe:hover {
    border-color: #8d091f;
    color: #e85a6f;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 32px rgba(141, 9, 31, 0.55);
    text-shadow: 0 0 14px rgba(232, 90, 111, 0.45);
}

/* Maiya — timeline mint #befadc */
.popup-maiya {
    border-color: rgba(190, 250, 220, 0.4);
}

.popup-maiya:hover {
    border-color: #befadc;
    color: #befadc;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 32px rgba(190, 250, 220, 0.45);
    text-shadow: 0 0 14px rgba(190, 250, 220, 0.5);
}

/* Bára — timeline pink #ffd1ea */
.popup-bara {
    border-color: rgba(255, 209, 234, 0.45);
}

.popup-bara:hover {
    border-color: #ffd1ea;
    color: #ffd1ea;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 32px rgba(255, 209, 234, 0.5);
    text-shadow: 0 0 14px rgba(255, 209, 234, 0.55);
}


/* Character interactive buttons (shared) */
.char-btn {
  position: absolute;
  z-index: 50;
  cursor: pointer;
  transition: transform 0.3s ease;
  height: auto;
  max-width: none;
  max-height: none;
  display: none;
  opacity: 1;
  pointer-events: auto;
}

.char-btn:hover {
  transform: scale(1.1);
}

.btn-anet {
  display: block;
}

/* ANET — button placement (top / left / width) */
#anet-trofej {
  top: 5%;
  left: 62%;
  width: 15%;
}

#anet-vlajky {
  top: 60%;
  left: 5%;
  width: 29%;
}

#anet-car {
  top: 9%;
  left: 9%;
  width: 27%;
}

#anet-helma {
  top: 58%;
  left: 62%;
  width: 22%;
}

/* BÁRA — button placement (top / left / width) */
#bara-cat {
  top: 38%;
  left: 62%;
  width: 18%;
}

#bara-demi {
  top: 8%;
  left: 57%;
  width: 22%;
}

#bara-mobil {
  top: 45%;
  left: 13%;
  width: 18%;
}

#bara-xbox {
  top: 6%;
  left: 8%;
  width: 27%;
}

/* DAWE — button placement (top / left / width) */
#dawe-kytara {
  top: 26%;
  left: 60%;
  width: 19%;
}

#dawe-mobil {
  top: 9%;
  left: 17%;
  width: 20%;
}

#dawe-noty1 {
  top: 8%;
  left: 55%;
  width: 10%;
}

#dawe-noty2 {
  top: 25%;
  left: 7%;
  width: 15%;
}

/* MAIYA — button placement (top / left / width) */
#maiya-axolotl {
  top: 45%;
  left: 63%;
  width: 20%;
}

#maiya-ipad {
  top: 55%;
  left: 8%;
  width: 23%;
}

#maiya-moka {
  top: 8%;
  left: 10%;
  width: 24%;
}

#maiya-pivo {
  top: 8%;
  left: 58%;
  width: 19%;
}

/* 1. The Lightbox Background */
#lightbox-overlay {
    display: none; 
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: #befadca8;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

/* 2. The Close Button */
#close-lightbox {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
    color: white;
    font-size: 72px;
    line-height: 1;
    cursor: pointer;
    z-index: 100001;
    font-family: "Splash", cursive;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* 3. The Content Wrapper */
.lightbox-content {
    position: relative;
    width: min(1920px, 100vw);
    height: min(1080px, 100vh);
    max-width: 1920px;
    max-height: 1080px;
    padding: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
}

#lightbox-overlay.lightbox-open .lightbox-content {
    opacity: 1;
}

/* 4. The Image — full-bleed background layer */
#lightbox-image {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    object-fit: cover;
    object-position: center;
}

#lightbox-video {
    width: 100%;
    height: auto;
    display: block;
    border: none;       
    outline: none;      
    box-shadow: none;   
    background: transparent;
}

.lightbox-inner {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.lightbox-top-row {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lightbox-media-box {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    overflow: hidden;
}

.lightbox-right-column {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    padding: 48px 40px 40px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    pointer-events: none;
}

.lightbox-right-column > * {
    pointer-events: auto;
}

.lightbox-text-box {
    width: 100%;
    max-width: 520px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.35);
    padding: 24px 28px;
    border-radius: 24px;
    box-sizing: border-box;
}

.lightbox-text-box h2,
.lightbox-text-box p {
    margin: 0;
}

.lightbox-text-box h2 {
    margin-bottom: 16px;
    font-size: 1.8rem;
      font-family: "Splash", cursive;
    font-weight: 400;
    font-style: normal;
}

.lightbox-text-box p {
    line-height: 1.6;
        font-family: "Tillana", system-ui;
  font-weight: 400;
  font-style: normal;
}

.lightbox-media-box img {
    border-radius: 0;
    box-shadow: none;
}

.lightbox-video-box {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

/* Full HD lightbox — photo fills panel, text + video overlay on the right */
#lightbox-overlay.lightbox-anet .lightbox-content,
#lightbox-overlay.lightbox-dawe .lightbox-content,
#lightbox-overlay.lightbox-maiya .lightbox-content,
#lightbox-overlay.lightbox-bara .lightbox-content {
    width: min(1920px, 100vw);
    height: min(1080px, 100vh);
    max-width: 1920px;
    max-height: 1080px;
    padding: 0;
}

#lightbox-overlay.lightbox-anet #lightbox-image,
#lightbox-overlay.lightbox-dawe #lightbox-image,
#lightbox-overlay.lightbox-maiya #lightbox-image,
#lightbox-overlay.lightbox-bara #lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* All characters — same overlay layout as Anet (text + video on photo) */
#lightbox-overlay.lightbox-anet .lightbox-right-column,
#lightbox-overlay.lightbox-dawe .lightbox-right-column,
#lightbox-overlay.lightbox-maiya .lightbox-right-column,
#lightbox-overlay.lightbox-bara .lightbox-right-column {
    right: auto;
    left: 50%;
    width: 48%;
    max-width: 900px;
    padding: 40px 24px 36px 24px;
    gap: 32px;
    align-items: center;
    transform: translateX(-14%);
}

#lightbox-overlay.lightbox-anet .lightbox-text-box,
#lightbox-overlay.lightbox-dawe .lightbox-text-box,
#lightbox-overlay.lightbox-maiya .lightbox-text-box,
#lightbox-overlay.lightbox-bara .lightbox-text-box {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    max-width: 820px;
    padding: 28px 32px;
    overflow: hidden;
}

#lightbox-overlay.lightbox-anet .lightbox-text-box h2,
#lightbox-overlay.lightbox-dawe .lightbox-text-box h2,
#lightbox-overlay.lightbox-maiya .lightbox-text-box h2,
#lightbox-overlay.lightbox-bara .lightbox-text-box h2 {
    font-size: 2.4rem;
    margin-bottom: 18px;
}

#lightbox-overlay.lightbox-anet .lightbox-text-box p,
#lightbox-overlay.lightbox-dawe .lightbox-text-box p,
#lightbox-overlay.lightbox-maiya .lightbox-text-box p,
#lightbox-overlay.lightbox-bara .lightbox-text-box p {
    font-size: 1.25rem;
    line-height: 1.55;
}

#lightbox-overlay.lightbox-anet .lightbox-video-box,
#lightbox-overlay.lightbox-dawe .lightbox-video-box,
#lightbox-overlay.lightbox-maiya .lightbox-video-box,
#lightbox-overlay.lightbox-bara .lightbox-video-box {
    width: 100%;
    max-width: 820px;
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#lightbox-overlay.lightbox-anet #lightbox-video,
#lightbox-overlay.lightbox-dawe #lightbox-video,
#lightbox-overlay.lightbox-maiya #lightbox-video,
#lightbox-overlay.lightbox-bara #lightbox-video {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 320px;
    max-height: min(580px, 62vh);
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
    background: #000;
}

#lightbox-overlay.lightbox-anet #close-lightbox,
#lightbox-overlay.lightbox-dawe #close-lightbox,
#lightbox-overlay.lightbox-maiya #close-lightbox,
#lightbox-overlay.lightbox-bara #close-lightbox {
    color: #fff;
    z-index: 10;
}

#close-lightbox:hover {
    color: #a6dda6;
    transform: scale(2.2); /* Gets slightly bigger */
    transition: all 0.2s ease;
}

/* Per-character lightbox — dark backdrop behind full-bleed photo */
#lightbox-overlay.lightbox-anet,
#lightbox-overlay.lightbox-dawe,
#lightbox-overlay.lightbox-maiya,
#lightbox-overlay.lightbox-bara {
    background: rgba(0, 0, 0, 0.85);
}

/* Character select overlay */
.char-select-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('png_veci/backround3.gif');
    z-index: 10010;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
        background-size: cover;
}

.char-select-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 3em 2em;
}

.char-select-title {
    color: #000000;
    font-family: "Splash", cursive;
    font-size: clamp(2.8rem, 4.5vw, 4rem);
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
    animation: floatAndSpin 4s ease-in-out infinite;
}

@keyframes floatAndSpin {
    0% {
        transform: translateY(0) rotateZ(-2deg);
        text-shadow: 0 0 20px #636363;
    }
    50% {
        transform: translateY(-15px) rotateZ(2deg);
        text-shadow: 0 0 20px #636363;
    }
    100% {
        transform: translateY(0) rotateZ(-2deg);
        text-shadow: 0 0 20px #636363;
    }
}

.char-select-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.char-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    aspect-ratio: 30/46;
    text-decoration: none;
    color: rgb(255, 255, 255);
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 15px;
    background: rgba(0, 0, 0, 0.808);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 222, 152, 0.3);
    overflow: hidden;
}

.char-choice img {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    object-fit: cover;
    object-position: 44% center;
    display: block;
    border-radius: 10px;
}

.char-choice span {
    margin-top: 12px;
    font-family: "Splash", cursive;
    font-size: 1.85rem;
    text-align: center;
    width: 100%;
    line-height: 1.15;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.char-choice:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px #2a3846;
}

#char-select-overlay .intro-lightbox-close {
    top: 30px;
    right: 30px;
}

#close-lightbox:hover {
    color: #535353;
    transform: scale(1.1); /* Gets slightly bigger */
    transition: all 0.2s ease;
}


.timeline {
  position: fixed;
  right: 0px;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  
  /* ADD THIS LINE */
  z-index: 9999;
  
background: rgba(0, 0, 0, 0.678);
backdrop-filter: blur(10px);
    padding-left: 3vw;
    /* padding-right: 4vw;*/
box-shadow: -10px 0 30px rgba(0,0,0,0.5);


}

.timeline ul {
  list-style: none;
 /*  border-right: 7px solid white; Thicker white line */
  /* padding-right: 20px; */
  margin: 0;
}

.timeline li {
  /* This spreads the names out. Adjust 15vh up or down to change spacing */
  margin: 10vh 0; 
  text-align: right;
  position: relative;
  
}

.timeline a {
   cursor: pointer;
  text-decoration: none;
  color: white;
  /* FONT STYLING */
   font-family: "Splash", cursive;
   font-weight: 400;
   font-style: normal;
   font-size: clamp(2.2rem, 4vw, 4rem);
   padding-right: 2vw;

   display: inline-block; 
   transition: transform 0.3s ease; 
   transform-origin: right center;

   
}

.timeline a:hover { 
  transform: scale(1.1); /* Gets slightly bigger */
  transition: all 0.2s ease;
  text-shadow: 0 0 10px #2a3846;
  
}

/* The Circles on the line */
.timeline li::after {
  content: '';
  position: absolute;
  right: -36px; /* Adjust this so it sits perfectly on the line */
  top: 50%;
  transform: translateY(-50%);
  width: 25px; /* Bigger circles */
  height: 25px;
  background: white;
  border-radius: 50%;
  /*border: 3px solid black; /* Gives the circle a slight outline */
  transition: background-color 0.3s ease;
}

/* Active State (The Red Character) */
.timeline li a.active {
  color: #ff0000; /* Bright punk red */
  transform: scale(1.2);
  

}

.timeline li a.active::after {
  background: #ff0000;
  transform: translateY(-50%) scale(1.2); /* Makes the red dot slightly bigger */
}

.timeline li:nth-child(odd) a { transform: rotate(-3deg); display: inline-block; }

/* Mobile: enlarge main character GIFs and make buttons more tappable */
@media (max-width: 600px) {
    .gif-container {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 100vw;
        height: auto;
        pointer-events: auto;
    }

    /* Make the main character fill most of the viewport on phones */
    #main-character {
        width: 86vw;
        max-width: 92vw;
        height: auto;
        max-height: 65vh;
        display: block;
        margin: 0 auto;
        left: 5%;
    }

    /* Make interactive GIF buttons larger and easier to tap */
    .char-btn {
        max-width: 30vw !important;
        max-height: 30vh !important;
        height: auto !important;
        opacity: 1;
    }

    /* Slightly increase arm overlay so it stays visible on the larger character */
    #arm-overlay {
        z-index: 60;
    }

    .arm-anet {
  top: 24.2%;
  left: 5%;
  width: 16.5%;
}

.arm-dawe {
  top: 23.6%;
  left: 40%;
  width: 12.7%;
}

.arm-maiya {
  top: 26%;
  left: 42%;
  width: 17.7%;
}

.arm-bara {
  top: 25.7%;
  left: 6%;
  width: 15.5%;
}


    /* Reduce timeline font on phones so it doesn't interfere */
    .timeline a {
        font-size: 36px;
        padding-right: 14px;
    }
}
.timeline li:nth-child(even) a { transform: rotate(2deg); display: inline-block; }

/* 1. ANET - Dark Blue */
.timeline li:nth-child(1) a:hover, 
.timeline li:nth-child(1) a.active {
  color: #77a3cc;
  transform: scale(1.3) rotate(-3deg);
}
.timeline li:nth-child(1):hover::after,
.timeline li:nth-child(1) a.active + ::after { background: #77a3cc; }


/* 2. DAWE - Red */
.timeline li:nth-child(2) a:hover, 
.timeline li:nth-child(2) a.active {
  color: #8d091f;
  transform: scale(1.3) rotate(2deg);
}
.timeline li:nth-child(2):hover::after,
.timeline li:nth-child(2) a.active + ::after { background:  #8d091f; }

/* 3. MAIYA - Mint Green */
.timeline li:nth-child(3) a:hover, 
.timeline li:nth-child(3) a.active {
  color: #befadc;
  transform: scale(1.3) rotate(-3deg);
}
.timeline li:nth-child(3):hover::after,
.timeline li:nth-child(3) a.active + ::after { background: #befadc; }

/* 4. BARA - Pastel Pink */
.timeline li:nth-child(4) a:hover, 
.timeline li:nth-child(4) a.active {
  color: #ffd1ea;
  transform: scale(1.3) rotate(2deg);
}
.timeline li:nth-child(4):hover::after,
.timeline li:nth-child(4) a.active + ::after { background: #ffd1ea; }

/* Mobile-only UI (hidden on desktop) */
.mobile-menu-toggle,
.mobile-curtain,
.mobile-curtain-backdrop {
    display: none;
}

/* ========== PHONE / TABLET (desktop layout unchanged above) ========== */
@media (max-width: 900px) {

    body {
        background-attachment: scroll;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        min-height: 100vh;
        min-height: 100dvh;
    }


    .char-select-title {
        font-size: clamp(2rem, 9vw, 3.2rem);
        flex-shrink: 0;
    }

    .char-select-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        align-items: stretch;
        max-width: 96vw;
        margin: 0 auto;
    }

    .char-choice {
        box-sizing: border-box;
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
        height: auto;
        min-height: 35vh;
        padding: 10px;
    }

    /* Main page — larger character, full-screen background */
    .gif-container {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 92vw;
        height: 78vh;
        max-width: 92vw;
        max-height: 78vh;
    }

    #main-character {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        left: -15%;
    }

    #arm-overlay {
        opacity: 1;
    }

    #arm-overlay:active {
        opacity: 1;
    }


    /* Mobile — 4 buttons: two on top, two on bottom (per character) */
    /* Anet */
    #anet-trofej { top: 25%; left: 72%; width: 28%; }
    #anet-car { top: 5%; left: 69%; width: 100%; }
    #anet-vlajky { top: 80%; left: 68%; width: 100%; }
    #anet-helma { top: 58%; left: 69%; width: 100%; }

    /* Bára */
    #bara-demi { top: 20%; left: 68%; width: 50%; }
    #bara-xbox { top: 2%; left: 68%; width: 50%; }
    #bara-mobil { top: 35%; left: 68%; width: 50%; }
    #bara-cat { top: 65%; left: 68%; width: 50%; }

    /* Dawe */
    #dawe-noty1 { top: 0%; left: 80%; width: 20%; }
    #dawe-kytara { top: 60%; left: 65%; width: 50%; }
    #dawe-mobil { top: 17%; left: 65%; width: 50%; }
    #dawe-noty2 { top: 2%; left: 52%; width: 25%; }

    /* Maiya */
    #maiya-moka { top: 5%; left: 68%; width: 50%; }
    #maiya-pivo { top: 26%; left: 68%; width: 50%; }
    #maiya-ipad { top: 48%; left: 70%; width: 50%; }
    #maiya-axolotl { top: 68%; left: 70%; width: 50%; }

    /* Hide desktop timeline; show curtain menu */
    .timeline {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 14px;
        right: 14px;
        z-index: 10005;
        width: 52px;
        height: 52px;
        padding: 0;
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(10px);
        color: #fff;
        font-family: "Splash", cursive;
        font-size: 1.75rem;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
        transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .mobile-menu-toggle:active {
        transform: scale(1.08);
        border-color: #fff;
    }

    body.curtain-open .mobile-menu-toggle {
        opacity: 0;
        pointer-events: none;
    }

    .mobile-curtain-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10006;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .mobile-curtain-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-curtain {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(82vw, 300px);
        height: 100%;
        z-index: 10007;
        padding: 56px 24px 32px;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.88);
        backdrop-filter: blur(14px);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.6);
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }

    .mobile-curtain.open {
        transform: translateX(0);
    }

    .mobile-curtain-close {
        position: absolute;
        top: 12px;
        right: 14px;
        background: none;
        border: none;
        color: #fff;
        font-family: "Splash", cursive;
        font-size: 2.5rem;
        line-height: 1;
        cursor: pointer;
        padding: 4px 8px;
    }

    .mobile-curtain-title {
        margin: 0 0 28px;
        font-family: "Splash", cursive;
        font-size: 2rem;
        color: #fff;
        text-align: center;
    }

    .mobile-curtain-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
        padding-right: 16px;
    }

    .mobile-curtain-nav .char-link {
        font-family: "Splash", cursive;
        font-size: clamp(1.2rem, 9vw, 2.75rem);
        color: #fff;
        text-decoration: none;
        text-align: right;
        padding: 12px 8px;
        display: block;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .mobile-curtain-nav .char-link:nth-child(1):hover,
    .mobile-curtain-nav .char-link:nth-child(1).active { color: #77a3cc; }
    .mobile-curtain-nav .char-link:nth-child(2):hover,
    .mobile-curtain-nav .char-link:nth-child(2).active { color: #8d091f; }
    .mobile-curtain-nav .char-link:nth-child(3):hover,
    .mobile-curtain-nav .char-link:nth-child(3).active { color: #befadc; }
    .mobile-curtain-nav .char-link:nth-child(4):hover,
    .mobile-curtain-nav .char-link:nth-child(4).active { color: #ffd1ea; }

    .mobile-curtain-nav .char-link.active {
        transform: scale(1.05);
    }

    /* Button popups — centered */
    .popup-text {
        left: 50%;
        right: auto;
        width: 92vw;
        max-width: none;
        padding: 32px 24px;
        font-size: 1.25rem;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .popup-text:hover {
        transform: translate(-50%, -50%) scale(1.02);
    }

    .popup-text::before {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    /* Arm tattoo lightbox — text → full photo → video */
    .lightbox-content {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto;
    }

    #lightbox-overlay.lightbox-anet .lightbox-content,
    #lightbox-overlay.lightbox-dawe .lightbox-content,
    #lightbox-overlay.lightbox-maiya .lightbox-content,
    #lightbox-overlay.lightbox-bara .lightbox-content {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100dvh;
    }

    .lightbox-inner {
        overflow-y: auto;
    }

    .lightbox-top-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        min-height: 100%;
        overflow: visible;
    }

    .lightbox-right-column {
        display: contents;
    }

    .lightbox-text-box {
        order: 1;
        position: relative;
        z-index: 2;
        width: calc(100% - 28px);
        max-width: none;
        margin: 48px 14px 0;
        padding: 16px 18px;
        flex-shrink: 0;
    }

    .lightbox-media-box {
        order: 2;
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 14px;
        box-sizing: border-box;
        background: #000;
    }

    #lightbox-overlay.lightbox-anet #lightbox-image,
    #lightbox-overlay.lightbox-dawe #lightbox-image,
    #lightbox-overlay.lightbox-maiya #lightbox-image,
    #lightbox-overlay.lightbox-bara #lightbox-image {
        position: relative;
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 38vh;
        object-fit: contain;
        object-position: center;
    }

    .lightbox-video-box {
        order: 3;
        position: relative;
        z-index: 2;
        width: calc(100% - 28px);
        max-width: none;
        margin: 14px 14px 2px;
        padding: 0;
        flex-shrink: 0;
    }

    #lightbox-overlay.lightbox-anet .lightbox-text-box h2,
    #lightbox-overlay.lightbox-dawe .lightbox-text-box h2,
    #lightbox-overlay.lightbox-maiya .lightbox-text-box h2,
    #lightbox-overlay.lightbox-bara .lightbox-text-box h2 {
        font-size: 1.35rem;
        margin-bottom: 8px;
    }

    #lightbox-overlay.lightbox-anet .lightbox-text-box p,
    #lightbox-overlay.lightbox-dawe .lightbox-text-box p,
    #lightbox-overlay.lightbox-maiya .lightbox-text-box p,
    #lightbox-overlay.lightbox-bara .lightbox-text-box p {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    #lightbox-overlay.lightbox-anet #lightbox-video,
    #lightbox-overlay.lightbox-dawe #lightbox-video,
    #lightbox-overlay.lightbox-maiya #lightbox-video,
    #lightbox-overlay.lightbox-bara #lightbox-video {
        width: 100%;
        min-height: 0;
        max-height: 32vh;
    }

    #close-lightbox {
        font-size: 3rem !important;
        top: 8px !important;
        right: 10px !important;
        position: fixed !important;
    }

    #close-lightbox:hover {
        transform: scale(1.15) !important;
    }
}

@media (max-width: 480px) {
    .gif-container {
        width: 96vw;
        height: 72vh;
    }

    .char-select-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);

    }
}




@media (min-width: 1880px) {
    .gif-container {
        left: 0;
        text-align: center;
            transform: translateY(-50%);
    }


}