

/* ===============================
 LAYOUT FIX FOOTER — INICI
 =============================== */
body.inici {
min-height: 100vh;          /* ocupa tota la pantalla */
display: flex;
flex-direction: column;
}
/* ===================================================== */
/* CAPSA BLAVA (TIRADA)                                   */
/* ===================================================== */
body.inici {
    /*  font-family: 'Open Sans', sans-serif;*/
    line-height: 1.7;
  }

  body.inici #fons-fixe {
      background: url("../img/inici1.jpg") center/cover no-repeat;
  }

  body.inici #main {
    flex: 1;                    /* empeny el footer cap avall */
  }


  /* contenidor general del main (mateix criteri que boto) */
  .contenidor-centre {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 10px;          /* petit marge lateral per mòbil */
    box-sizing: border-box;
  }


 .CapsaBlava {
    width: 100%;
    max-width: 400px;
    padding: 10px 22px;
    background: rgba(42, 118, 141, 0.0);
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.2);
}
/* 🐉 Imatge central (drac) més petita i centrada */
.CapsaBlava .img-centre {
    width: 120%;        /* ← aquí controles la mida */
    max-width: 300px;
    height: auto;
    display: block;
    margin: 16px auto; /* centrat perfecte */
    border-radius: 18px; /* si vols que sigui una mica rodona */
}

.CapsaBlava img:not(.img-centre) {
    width: 100%;
    margin: 22px 0;
    border-radius: 10px;
}

.CapsaBlava h2,
.CapsaBlava h3 {
    color: #fff;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
    opacity: 0.7;
    text-align: center;
}

.CapsaBlava p {
    color: #e6e6e6;
    font-size: 1em;
    margin-bottom: 18px;
    text-align: center;
    line-height: inherit;
    letter-spacing: 0.3px;
    opacity: 0.7;
}

.CapsaBlava a {
    color: #000;
    font-size: 1em;
    margin-bottom: 18px;
}
hr {
  border: 0;
  border-top: 1px solid rgba(113, 144, 198, 0.92);
  margin: 18px 0;
}

/* ============================= */
/* VIDEO RESPONSIVE – GLOBAL     */
/* ============================= */

.video-wrap {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 17 / 9.5;
  margin: 20px auto;
  border-radius: 18px;
  overflow: hidden;         /* 🔑 imprescindible */
  background: #000;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

    .drac-inici {
      position: relative;
      width: 300px;
      height: 230px;
      margin: 40px auto;
    }

    .drac-elastic {
      position: absolute;
      top: 40%;
      left: 50%;
      transform-origin: center center;
      user-select: none;
      touch-action: none;
    }

    /* 🔥 FLAMES DEL DRAC */
  .flama {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    pointer-events: none;

    background: radial-gradient(
      circle,
      rgba(255,220,120,1) 0%,
      rgba(255,120,0,0.9) 40%,
      rgba(255,0,0,0.6) 70%,
      transparent 80%
    );

    transform: translate(-50%, -50%) scale(0.5);
    animation: flama-puja 0.8s ease-out forwards;
  }

  /* ============================= */
/* VÍDEO SECRET SOTA EL DRAC     */
/* ============================= */

#video-secret {
  width: 100%;
  max-width: 360px;
  margin: 30px auto 0 auto;
  display: none;            /* controlat pel JS */
}

#video-secret .video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

#video-secret iframe {
  width: 100%;
  height: 100%;
  display: block;
}


  @keyframes flama-puja {
    0% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(0.6);
    }
    100% {
      opacity: 0;
      transform:
        translate(
          calc(-50% + var(--rand-x) * 60px),
          calc(-50% - 90px)
        )
        scale(2.0);
    }
  }


  /* En mòbil (pantalles petites) adaptar al 100% del contenidor */
  @media (max-width: 400px) {
      .FotoAdaptada {
          width: 100%;   /* s’adapta a la pantalla */
          max-width: 300px; /* opcional: límit superior */
      }
